summaryrefslogtreecommitdiffstats
path: root/tests/ui/asm/aarch64
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
commit9918693037dce8aa4bb6f08741b6812923486c18 (patch)
tree21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /tests/ui/asm/aarch64
parentReleasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff)
downloadrustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz
rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/asm/aarch64')
-rw-r--r--tests/ui/asm/aarch64/bad-reg.rs6
-rw-r--r--tests/ui/asm/aarch64/bad-reg.stderr12
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/ui/asm/aarch64/bad-reg.rs b/tests/ui/asm/aarch64/bad-reg.rs
index 9ccb8ed67..f71418161 100644
--- a/tests/ui/asm/aarch64/bad-reg.rs
+++ b/tests/ui/asm/aarch64/bad-reg.rs
@@ -48,14 +48,14 @@ fn main() {
// (except in/lateout which don't conflict)
asm!("", in("x0") foo, in("w0") bar);
- //~^ ERROR register `x0` conflicts with register `x0`
+ //~^ ERROR register `w0` conflicts with register `x0`
asm!("", in("x0") foo, out("x0") bar);
//~^ ERROR register `x0` conflicts with register `x0`
asm!("", in("w0") foo, lateout("w0") bar);
asm!("", in("v0") foo, in("q0") bar);
- //~^ ERROR register `v0` conflicts with register `v0`
+ //~^ ERROR register `q0` conflicts with register `v0`
asm!("", in("v0") foo, out("q0") bar);
- //~^ ERROR register `v0` conflicts with register `v0`
+ //~^ ERROR register `q0` conflicts with register `v0`
asm!("", in("v0") foo, lateout("q0") bar);
}
}
diff --git a/tests/ui/asm/aarch64/bad-reg.stderr b/tests/ui/asm/aarch64/bad-reg.stderr
index 0ba627dac..717a788ca 100644
--- a/tests/ui/asm/aarch64/bad-reg.stderr
+++ b/tests/ui/asm/aarch64/bad-reg.stderr
@@ -98,11 +98,11 @@ error: register class `preg` can only be used as a clobber, not as an input or o
LL | asm!("{}", out(preg) _);
| ^^^^^^^^^^^
-error: register `x0` conflicts with register `x0`
+error: register `w0` conflicts with register `x0`
--> $DIR/bad-reg.rs:50:32
|
LL | asm!("", in("x0") foo, in("w0") bar);
- | ------------ ^^^^^^^^^^^^ register `x0`
+ | ------------ ^^^^^^^^^^^^ register `w0`
| |
| register `x0`
@@ -120,19 +120,19 @@ help: use `lateout` instead of `out` to avoid conflict
LL | asm!("", in("x0") foo, out("x0") bar);
| ^^^^^^^^^^^^
-error: register `v0` conflicts with register `v0`
+error: register `q0` conflicts with register `v0`
--> $DIR/bad-reg.rs:55:32
|
LL | asm!("", in("v0") foo, in("q0") bar);
- | ------------ ^^^^^^^^^^^^ register `v0`
+ | ------------ ^^^^^^^^^^^^ register `q0`
| |
| register `v0`
-error: register `v0` conflicts with register `v0`
+error: register `q0` conflicts with register `v0`
--> $DIR/bad-reg.rs:57:32
|
LL | asm!("", in("v0") foo, out("q0") bar);
- | ------------ ^^^^^^^^^^^^^ register `v0`
+ | ------------ ^^^^^^^^^^^^^ register `q0`
| |
| register `v0`
|