Add more codegen tests

This commit is contained in:
Nilstrieb 2022-12-30 21:11:30 +01:00 committed by nils
parent af23ad93cd
commit f1255380ac
26 changed files with 166 additions and 139 deletions

View file

@ -1,4 +1,4 @@
// compile-flags: -C no-prepopulate-passes
// compile-flags: -C no-prepopulate-passes -Copt-level=0
// ignore-riscv64
@ -23,7 +23,7 @@ pub fn do_call() {
unsafe {
// Ensure that we `call` LLVM intrinsics instead of trying to `invoke` them
// CHECK: call noundef float @llvm.sqrt.f32(float noundef 4.000000e+00
// CHECK: call float @llvm.sqrt.f32(float 4.000000e+00
sqrt(4.0);
}
}