Skip to content
/ rust Public
forked from rust-lang/rust

Commit

Permalink
Update test expectations to accept LLVM 'initializes' attribute
Browse files Browse the repository at this point in the history
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
zmodem committed Nov 25, 2024
1 parent 1278dad commit 402bdd1
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 402bdd1

Please sign in to comment.