Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tests/ui/asm/aarch64/arm64ec-sve.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ add-core-stubs
//@ compile-flags: --target arm64ec-pc-windows-msvc
//@ needs-asm-support
//@ needs-llvm-components: aarch64

#![crate_type = "rlib"]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/asm/aarch64/arm64ec-sve.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error: cannot use register `p0`: x13, x14, x23, x24, x28, v16-v31, p*, ffr cannot be used for Arm64EC
--> $DIR/arm64ec-sve.rs:18:18
--> $DIR/arm64ec-sve.rs:17:18
|
LL | asm!("", out("p0") _);
| ^^^^^^^^^^^

error: cannot use register `ffr`: x13, x14, x23, x24, x28, v16-v31, p*, ffr cannot be used for Arm64EC
--> $DIR/arm64ec-sve.rs:20:18
--> $DIR/arm64ec-sve.rs:19:18
|
LL | asm!("", out("ffr") _);
| ^^^^^^^^^^^^
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/asm/inline-syntax.arm.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LL | .intel_syntax noprefix
| ^

error: unknown directive
--> $DIR/inline-syntax.rs:21:15
--> $DIR/inline-syntax.rs:20:15
|
LL | asm!(".intel_syntax noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -27,7 +27,7 @@ LL | .intel_syntax noprefix
| ^

error: unknown directive
--> $DIR/inline-syntax.rs:24:15
--> $DIR/inline-syntax.rs:23:15
|
LL | asm!(".intel_syntax aaa noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -39,7 +39,7 @@ LL | .intel_syntax aaa noprefix
| ^

error: unknown directive
--> $DIR/inline-syntax.rs:27:15
--> $DIR/inline-syntax.rs:26:15
|
LL | asm!(".att_syntax noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^
Expand All @@ -51,7 +51,7 @@ LL | .att_syntax noprefix
| ^

error: unknown directive
--> $DIR/inline-syntax.rs:30:15
--> $DIR/inline-syntax.rs:29:15
|
LL | asm!(".att_syntax bbb noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -63,7 +63,7 @@ LL | .att_syntax bbb noprefix
| ^

error: unknown directive
--> $DIR/inline-syntax.rs:33:15
--> $DIR/inline-syntax.rs:32:15
|
LL | asm!(".intel_syntax noprefix; nop");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -75,7 +75,7 @@ LL | .intel_syntax noprefix; nop
| ^

error: unknown directive
--> $DIR/inline-syntax.rs:39:13
--> $DIR/inline-syntax.rs:38:13
|
LL | .intel_syntax noprefix
| ^^^^^^^^^^^^^^^^^^^^^^
Expand Down
1 change: 0 additions & 1 deletion tests/ui/asm/inline-syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//@[arm] compile-flags: --target armv7-unknown-linux-gnueabihf
//@[arm] build-fail
//@[arm] needs-llvm-components: arm
//@ needs-asm-support

#![feature(no_core)]
#![crate_type = "rlib"]
Expand Down
14 changes: 7 additions & 7 deletions tests/ui/asm/inline-syntax.x86_64.stderr
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
warning: avoid using `.intel_syntax`, Intel syntax is the default
--> $DIR/inline-syntax.rs:47:14
--> $DIR/inline-syntax.rs:46:14
|
LL | global_asm!(".intel_syntax noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(bad_asm_style)]` on by default

warning: avoid using `.intel_syntax`, Intel syntax is the default
--> $DIR/inline-syntax.rs:21:15
--> $DIR/inline-syntax.rs:20:15
|
LL | asm!(".intel_syntax noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^^^

warning: avoid using `.intel_syntax`, Intel syntax is the default
--> $DIR/inline-syntax.rs:24:15
--> $DIR/inline-syntax.rs:23:15
|
LL | asm!(".intel_syntax aaa noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: avoid using `.att_syntax`, prefer using `options(att_syntax)` instead
--> $DIR/inline-syntax.rs:27:15
--> $DIR/inline-syntax.rs:26:15
|
LL | asm!(".att_syntax noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^

warning: avoid using `.att_syntax`, prefer using `options(att_syntax)` instead
--> $DIR/inline-syntax.rs:30:15
--> $DIR/inline-syntax.rs:29:15
|
LL | asm!(".att_syntax bbb noprefix", "nop");
| ^^^^^^^^^^^^^^^^^^^^^^^^

warning: avoid using `.intel_syntax`, Intel syntax is the default
--> $DIR/inline-syntax.rs:33:15
--> $DIR/inline-syntax.rs:32:15
|
LL | asm!(".intel_syntax noprefix; nop");
| ^^^^^^^^^^^^^^^^^^^^^^

warning: avoid using `.intel_syntax`, Intel syntax is the default
--> $DIR/inline-syntax.rs:39:13
--> $DIR/inline-syntax.rs:38:13
|
LL | .intel_syntax noprefix
| ^^^^^^^^^^^^^^^^^^^^^^
Expand Down
1 change: 0 additions & 1 deletion tests/ui/asm/issue-92378.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ add-core-stubs
//@ compile-flags: --target armv5te-unknown-linux-gnueabi
//@ needs-llvm-components: arm
//@ needs-asm-support
//@ build-pass

#![feature(no_core)]
Expand Down
1 change: 0 additions & 1 deletion tests/ui/asm/issue-99071.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ add-core-stubs
//@ compile-flags: --target thumbv6m-none-eabi
//@ needs-llvm-components: arm
//@ needs-asm-support

#![feature(no_core)]
#![no_core]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/asm/issue-99071.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: cannot use register `r8`: high registers (r8+) can only be used as clobbers in Thumb-1 code
--> $DIR/issue-99071.rs:15:18
--> $DIR/issue-99071.rs:14:18
|
LL | asm!("", in("r8") 0);
| ^^^^^^^^^^
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/asm/loongarch/bad-reg.loongarch32_ilp32d.stderr
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
error: invalid register `$r0`: constant zero cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:26:18
--> $DIR/bad-reg.rs:25:18
|
LL | asm!("", out("$r0") _);
| ^^^^^^^^^^^^

error: invalid register `$tp`: reserved for TLS
--> $DIR/bad-reg.rs:28:18
--> $DIR/bad-reg.rs:27:18
|
LL | asm!("", out("$tp") _);
| ^^^^^^^^^^^^

error: invalid register `$sp`: the stack pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:30:18
--> $DIR/bad-reg.rs:29:18
|
LL | asm!("", out("$sp") _);
| ^^^^^^^^^^^^

error: invalid register `$r21`: reserved by the ABI
--> $DIR/bad-reg.rs:32:18
--> $DIR/bad-reg.rs:31:18
|
LL | asm!("", out("$r21") _);
| ^^^^^^^^^^^^^

error: invalid register `$fp`: the frame pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:34:18
--> $DIR/bad-reg.rs:33:18
|
LL | asm!("", out("$fp") _);
| ^^^^^^^^^^^^

error: invalid register `$r31`: $r31 is used internally by LLVM and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:36:18
--> $DIR/bad-reg.rs:35:18
|
LL | asm!("", out("$r31") _);
| ^^^^^^^^^^^^^
Expand Down
20 changes: 10 additions & 10 deletions tests/ui/asm/loongarch/bad-reg.loongarch32_ilp32s.stderr
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
error: invalid register `$r0`: constant zero cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:26:18
--> $DIR/bad-reg.rs:25:18
|
LL | asm!("", out("$r0") _);
| ^^^^^^^^^^^^

error: invalid register `$tp`: reserved for TLS
--> $DIR/bad-reg.rs:28:18
--> $DIR/bad-reg.rs:27:18
|
LL | asm!("", out("$tp") _);
| ^^^^^^^^^^^^

error: invalid register `$sp`: the stack pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:30:18
--> $DIR/bad-reg.rs:29:18
|
LL | asm!("", out("$sp") _);
| ^^^^^^^^^^^^

error: invalid register `$r21`: reserved by the ABI
--> $DIR/bad-reg.rs:32:18
--> $DIR/bad-reg.rs:31:18
|
LL | asm!("", out("$r21") _);
| ^^^^^^^^^^^^^

error: invalid register `$fp`: the frame pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:34:18
--> $DIR/bad-reg.rs:33:18
|
LL | asm!("", out("$fp") _);
| ^^^^^^^^^^^^

error: invalid register `$r31`: $r31 is used internally by LLVM and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:36:18
--> $DIR/bad-reg.rs:35:18
|
LL | asm!("", out("$r31") _);
| ^^^^^^^^^^^^^

error: register class `freg` requires at least one of the following target features: d, f
--> $DIR/bad-reg.rs:40:26
--> $DIR/bad-reg.rs:39:26
|
LL | asm!("/* {} */", in(freg) f);
| ^^^^^^^^^^

error: register class `freg` requires at least one of the following target features: d, f
--> $DIR/bad-reg.rs:42:26
--> $DIR/bad-reg.rs:41:26
|
LL | asm!("/* {} */", out(freg) _);
| ^^^^^^^^^^^

error: register class `freg` requires at least one of the following target features: d, f
--> $DIR/bad-reg.rs:44:26
--> $DIR/bad-reg.rs:43:26
|
LL | asm!("/* {} */", in(freg) d);
| ^^^^^^^^^^

error: register class `freg` requires at least one of the following target features: d, f
--> $DIR/bad-reg.rs:46:26
--> $DIR/bad-reg.rs:45:26
|
LL | asm!("/* {} */", out(freg) d);
| ^^^^^^^^^^^
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/asm/loongarch/bad-reg.loongarch64_lp64d.stderr
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
error: invalid register `$r0`: constant zero cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:26:18
--> $DIR/bad-reg.rs:25:18
|
LL | asm!("", out("$r0") _);
| ^^^^^^^^^^^^

error: invalid register `$tp`: reserved for TLS
--> $DIR/bad-reg.rs:28:18
--> $DIR/bad-reg.rs:27:18
|
LL | asm!("", out("$tp") _);
| ^^^^^^^^^^^^

error: invalid register `$sp`: the stack pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:30:18
--> $DIR/bad-reg.rs:29:18
|
LL | asm!("", out("$sp") _);
| ^^^^^^^^^^^^

error: invalid register `$r21`: reserved by the ABI
--> $DIR/bad-reg.rs:32:18
--> $DIR/bad-reg.rs:31:18
|
LL | asm!("", out("$r21") _);
| ^^^^^^^^^^^^^

error: invalid register `$fp`: the frame pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:34:18
--> $DIR/bad-reg.rs:33:18
|
LL | asm!("", out("$fp") _);
| ^^^^^^^^^^^^

error: invalid register `$r31`: $r31 is used internally by LLVM and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:36:18
--> $DIR/bad-reg.rs:35:18
|
LL | asm!("", out("$r31") _);
| ^^^^^^^^^^^^^
Expand Down
20 changes: 10 additions & 10 deletions tests/ui/asm/loongarch/bad-reg.loongarch64_lp64s.stderr
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
error: invalid register `$r0`: constant zero cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:26:18
--> $DIR/bad-reg.rs:25:18
|
LL | asm!("", out("$r0") _);
| ^^^^^^^^^^^^

error: invalid register `$tp`: reserved for TLS
--> $DIR/bad-reg.rs:28:18
--> $DIR/bad-reg.rs:27:18
|
LL | asm!("", out("$tp") _);
| ^^^^^^^^^^^^

error: invalid register `$sp`: the stack pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:30:18
--> $DIR/bad-reg.rs:29:18
|
LL | asm!("", out("$sp") _);
| ^^^^^^^^^^^^

error: invalid register `$r21`: reserved by the ABI
--> $DIR/bad-reg.rs:32:18
--> $DIR/bad-reg.rs:31:18
|
LL | asm!("", out("$r21") _);
| ^^^^^^^^^^^^^

error: invalid register `$fp`: the frame pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:34:18
--> $DIR/bad-reg.rs:33:18
|
LL | asm!("", out("$fp") _);
| ^^^^^^^^^^^^

error: invalid register `$r31`: $r31 is used internally by LLVM and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:36:18
--> $DIR/bad-reg.rs:35:18
|
LL | asm!("", out("$r31") _);
| ^^^^^^^^^^^^^

error: register class `freg` requires at least one of the following target features: d, f
--> $DIR/bad-reg.rs:40:26
--> $DIR/bad-reg.rs:39:26
|
LL | asm!("/* {} */", in(freg) f);
| ^^^^^^^^^^

error: register class `freg` requires at least one of the following target features: d, f
--> $DIR/bad-reg.rs:42:26
--> $DIR/bad-reg.rs:41:26
|
LL | asm!("/* {} */", out(freg) _);
| ^^^^^^^^^^^

error: register class `freg` requires at least one of the following target features: d, f
--> $DIR/bad-reg.rs:44:26
--> $DIR/bad-reg.rs:43:26
|
LL | asm!("/* {} */", in(freg) d);
| ^^^^^^^^^^

error: register class `freg` requires at least one of the following target features: d, f
--> $DIR/bad-reg.rs:46:26
--> $DIR/bad-reg.rs:45:26
|
LL | asm!("/* {} */", out(freg) d);
| ^^^^^^^^^^^
Expand Down
1 change: 0 additions & 1 deletion tests/ui/asm/loongarch/bad-reg.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ add-core-stubs
//@ needs-asm-support
//@ revisions: loongarch32_ilp32d loongarch32_ilp32s loongarch64_lp64d loongarch64_lp64s
//@[loongarch32_ilp32d] compile-flags: --target loongarch32-unknown-none
//@[loongarch32_ilp32d] needs-llvm-components: loongarch
Expand Down
1 change: 0 additions & 1 deletion tests/ui/asm/naked-functions-instruction-set.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ add-core-stubs
//@ compile-flags: --target armv5te-unknown-linux-gnueabi
//@ needs-llvm-components: arm
//@ needs-asm-support
//@ build-pass

#![crate_type = "lib"]
Expand Down
Loading
Loading