diff options
| author | Boris-Chengbiao Zhou <bobo1239@web.de> | 2021-05-14 01:56:00 +0200 |
|---|---|---|
| committer | Boris-Chengbiao Zhou <bobo1239@web.de> | 2021-05-18 20:12:59 +0200 |
| commit | 46985d5d913f7e7621183f69cdbc5b65c5ce1fc7 (patch) | |
| tree | e4c3c63a63ba070fd2331ac58661bc042dbd4284 | |
| parent | 952c5732c2d25a875f90e5cd5dd29a1a21c1d4a2 (diff) | |
| download | rust-46985d5d913f7e7621183f69cdbc5b65c5ce1fc7.tar.gz rust-46985d5d913f7e7621183f69cdbc5b65c5ce1fc7.zip | |
Fix assembly test from #83592
The test case wasn't actually checked for x64 due to a small difference in the name.
| -rw-r--r-- | src/test/assembly/static-relocation-model.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/assembly/static-relocation-model.rs b/src/test/assembly/static-relocation-model.rs index 0463045c156..2ee63ddd379 100644 --- a/src/test/assembly/static-relocation-model.rs +++ b/src/test/assembly/static-relocation-model.rs @@ -1,8 +1,8 @@ // min-llvm-version: 12.0.0 // needs-llvm-components: aarch64 x86 -// revisions:X64 A64 +// revisions:x64 A64 // assembly-output: emit-asm -// [X64] compile-flags: --target x86_64-unknown-linux-gnu -Crelocation-model=static +// [x64] compile-flags: --target x86_64-unknown-linux-gnu -Crelocation-model=static // [A64] compile-flags: --target aarch64-unknown-linux-gnu -Crelocation-model=static #![feature(no_core, lang_items)] @@ -22,7 +22,7 @@ extern "C" { } // CHECK-LABEL: banana: -// x64: movb chaenomeles, %{{[a,z]+}} +// x64: movb chaenomeles{{(\(%[a-z0-9]+\))?}}, %{{[a-z0-9]+}} // A64: adrp [[REG:[a-z0-9]+]], chaenomeles // A64-NEXT: ldrb {{[a-z0-9]+}}, {{\[}}[[REG]], :lo12:chaenomeles] #[no_mangle] @@ -33,7 +33,7 @@ pub fn banana() -> u8 { } // CHECK-LABEL: peach: -// x64: movb banana, %{{[a,z]+}} +// x64: movb banana{{(\(%[a-z0-9]+\))?}}, %{{[a-z0-9]+}} // A64: adrp [[REG2:[a-z0-9]+]], banana // A64-NEXT: ldrb {{[a-z0-9]+}}, {{\[}}[[REG2]], :lo12:banana] #[no_mangle] |
