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:
Boris-Chengbiao Zhou 2021-05-14 01:56:00 +02:00
parent 952c5732c2
commit 46985d5d91

View File

@ -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]