Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Aug 28, 2020
1 parent 178c1bb commit 9ae5e95
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/test/assembly/asm/aarch64-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ pub unsafe fn sym_static() {
asm!("adr x0, {}", sym extern_static);
}

// Regression test for #75761
// CHECK-LABEL: issue_75761:
// CHECK: str {{.*}}x30
// CHECK: //APP
// CHECK: //NO_APP
// CHECK: ldr {{.*}}x30
#[no_mangle]
pub unsafe fn issue_75761() {
asm!("", out("v0") _, out("x30") _);
}

macro_rules! check {
($func:ident $ty:ident $class:ident $mov:literal $modifier:literal) => {
#[no_mangle]
Expand Down Expand Up @@ -553,13 +564,3 @@ check_reg!(v0_f32x4 f32x4 "s0" "fmov");
// CHECK: fmov s0, s0
// CHECK: //NO_APP
check_reg!(v0_f64x2 f64x2 "s0" "fmov");

// Regression test for #75761
// CHECK-LABEL: issue_75761:
// CHECK: stp {{{.*}}}lr
// CHECK: //APP
// CHECK: //NO_APP
// CHECK: ldp {{{.*}}}lr
pub unsafe fn issue_75761() {
asm!("", out("v0") _, out("x30") _);
}

0 comments on commit 9ae5e95

Please sign in to comment.