diff options
| author | Hans Wennborg <hans@chromium.org> | 2024-11-25 15:30:32 +0100 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2024-11-25 15:30:35 +0100 |
| commit | 402bdd183bc8db8cdbd8a582e69d40a09e971a2e (patch) | |
| tree | cf5ce9def6710f89560ee3c4eaf2849647c28e22 /tests/codegen/aarch64-softfloat.rs | |
| parent | 1278dad1e9a46a3a6fb5de80a5620cd2e58196cb (diff) | |
| download | rust-402bdd183bc8db8cdbd8a582e69d40a09e971a2e.tar.gz rust-402bdd183bc8db8cdbd8a582e69d40a09e971a2e.zip | |
Update test expectations to accept LLVM 'initializes' attribute
The test was checking for two `ptr` arguments by matching commas (or non-commas), however after https://github.com/llvm/llvm-project/pull/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)
Diffstat (limited to 'tests/codegen/aarch64-softfloat.rs')
| -rw-r--r-- | tests/codegen/aarch64-softfloat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/aarch64-softfloat.rs b/tests/codegen/aarch64-softfloat.rs index 14d0054f80c..85380a6c472 100644 --- a/tests/codegen/aarch64-softfloat.rs +++ b/tests/codegen/aarch64-softfloat.rs @@ -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 |
