Skip to content

Commit 96381d3

Browse files
committed
Fix: added necessary prefix
1 parent a9f6237 commit 96381d3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/test/assembly/asm/s390x-types.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "Rust" {
5151
macro_rules! check { ($func:ident, $ty:ty, $class:ident, $mov:literal) => {
5252
#[no_mangle]
5353
pub unsafe fn $func(x: $ty) -> $ty {
54-
dont_merge(stringify!(func));
54+
dont_merge(stringify!($func));
5555

5656
let y;
5757
asm!(concat!($mov," {}, {}"), out($class) y, in($class) x);
@@ -62,7 +62,7 @@ macro_rules! check { ($func:ident, $ty:ty, $class:ident, $mov:literal) => {
6262
macro_rules! check_reg { ($func:ident, $ty:ty, $reg:tt, $mov:literal) => {
6363
#[no_mangle]
6464
pub unsafe fn $func(x: $ty) -> $ty {
65-
dont_merge(stringify!(func));
65+
dont_merge(stringify!($func));
6666

6767
let y;
6868
asm!(concat!($mov, " ", $reg, ", ", $reg), lateout($reg) y, in($reg) x);
@@ -124,3 +124,9 @@ check!(reg_f32, f32, freg, "ler");
124124
// CHECK: ldr %f{{[0-9]+}}, %f{{[0-9]+}}
125125
// CHECK: #NO_APP
126126
check!(reg_f64, f64, freg, "ldr");
127+
128+
// CHECK-LABEL: reg_ptr:
129+
// CHECK: #APP
130+
// CHECK: lgr %r{{[0-9]+}}, %r{{[0-9]+}}
131+
// CHECK: #NO_APP
132+
check!(reg_ptr, ptr, reg, "lgr");

0 commit comments

Comments
 (0)