Skip to content

Commit 46985d5

Browse files
committed
Fix assembly test from #83592
The test case wasn't actually checked for x64 due to a small difference in the name.
1 parent 952c573 commit 46985d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/assembly/static-relocation-model.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// min-llvm-version: 12.0.0
22
// needs-llvm-components: aarch64 x86
3-
// revisions:X64 A64
3+
// revisions:x64 A64
44
// assembly-output: emit-asm
5-
// [X64] compile-flags: --target x86_64-unknown-linux-gnu -Crelocation-model=static
5+
// [x64] compile-flags: --target x86_64-unknown-linux-gnu -Crelocation-model=static
66
// [A64] compile-flags: --target aarch64-unknown-linux-gnu -Crelocation-model=static
77

88
#![feature(no_core, lang_items)]
@@ -22,7 +22,7 @@ extern "C" {
2222
}
2323

2424
// CHECK-LABEL: banana:
25-
// x64: movb chaenomeles, %{{[a,z]+}}
25+
// x64: movb chaenomeles{{(\(%[a-z0-9]+\))?}}, %{{[a-z0-9]+}}
2626
// A64: adrp [[REG:[a-z0-9]+]], chaenomeles
2727
// A64-NEXT: ldrb {{[a-z0-9]+}}, {{\[}}[[REG]], :lo12:chaenomeles]
2828
#[no_mangle]
@@ -33,7 +33,7 @@ pub fn banana() -> u8 {
3333
}
3434

3535
// CHECK-LABEL: peach:
36-
// x64: movb banana, %{{[a,z]+}}
36+
// x64: movb banana{{(\(%[a-z0-9]+\))?}}, %{{[a-z0-9]+}}
3737
// A64: adrp [[REG2:[a-z0-9]+]], banana
3838
// A64-NEXT: ldrb {{[a-z0-9]+}}, {{\[}}[[REG2]], :lo12:banana]
3939
#[no_mangle]

0 commit comments

Comments
 (0)