Skip to content

Commit

Permalink
Fix assembly test from rust-lang#83592
Browse files Browse the repository at this point in the history
The test case wasn't actually checked for x64 due to a small difference in the name.
  • Loading branch information
Bobo1239 committed May 18, 2021
1 parent 952c573 commit 46985d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/assembly/static-relocation-model.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand All @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit 46985d5

Please sign in to comment.