Rollup merge of #119523 - maurer:fix-sparc-llvm-18, r=nikic

llvm: Allow `noundef` in codegen tests

LLVM 18 will automatically infer `noundef` in some situations. Adjust codegen tests to accept this.

See llvm/llvm-project#76553 for why `noundef` is being generated now.

``@rustbot`` label:+llvm-main
This commit is contained in:
León Orell Valerian Liehr 2024-01-03 16:08:32 +01:00 committed by GitHub
commit fcec407f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -8,4 +8,4 @@
fn main() {
}
// CHECK: define{{( hidden)?}} i32 @main(i32{{( %0)?}}, ptr{{( %1)?}})
// CHECK: define{{( hidden| noundef)*}} i32 @main(i32{{( %0)?}}, ptr{{( %1)?}})

View File

@ -18,7 +18,7 @@ pub struct Bool {
b: bool,
}
// CHECK: define i64 @structbool()
// CHECK: define{{.*}} i64 @structbool()
// CHECK-NEXT: start:
// CHECK-NEXT: ret i64 72057594037927936
#[no_mangle]