Skip to content

Commit

Permalink
Unrolled build for rust-lang#133454
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#133454 - zmodem:initializes_fix, r=nikic

Update test expectations to accept LLVM 'initializes' attribute

The test was checking for two `ptr` arguments by matching commas (or non-commas), however after
llvm/llvm-project#117104 LLVM adds an `initializes((0, 16))` attribute, which includes a comma.

So instead, we make the test check for two LLVM values, i.e. something prefixed by %.

(See also https://crbug.com/380707238)
  • Loading branch information
rust-timer authored Nov 26, 2024
2 parents f2abf82 + 402bdd1 commit 54ca17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/codegen/aarch64-softfloat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn pass_f32_pair_Rust(x: (f32, f32)) -> (f32, f32) {
x
}

// CHECK: void @pass_f64_pair_Rust(ptr {{[^,]*}}, ptr {{[^,]*}})
// CHECK: void @pass_f64_pair_Rust(ptr {{.*}}%{{[^ ]+}}, ptr {{.*}}%{{[^ ]+}})
#[no_mangle]
fn pass_f64_pair_Rust(x: (f64, f64)) -> (f64, f64) {
x
Expand Down

0 comments on commit 54ca17c

Please sign in to comment.