mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Fix assembly test from #83592
The test case wasn't actually checked for x64 due to a small difference in the name.
This commit is contained in:
parent
952c5732c2
commit
46985d5d91
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user