Skip to content

Commit 482ad5c

Browse files
committed
Remove redundant min-llvm-version annotations for LoongArch tests
1 parent 74b55b4 commit 482ad5c

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

tests/ui/abi/compatibility.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
//@ revisions: loongarch64
4141
//@[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
4242
//@[loongarch64] needs-llvm-components: loongarch
43-
//@[loongarch64] min-llvm-version: 20
4443
//FIXME: wasm is disabled due to <https://github.com/rust-lang/rust/issues/115666>.
4544
//FIXME @ revisions: wasm
4645
//FIXME @[wasm] compile-flags: --target wasm32-unknown-unknown

tests/ui/asm/loongarch/bad-reg.loongarch64_lp64d.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
error: invalid register `$r0`: constant zero cannot be used as an operand for inline asm
2-
--> $DIR/bad-reg.rs:23:18
2+
--> $DIR/bad-reg.rs:22:18
33
|
44
LL | asm!("", out("$r0") _);
55
| ^^^^^^^^^^^^
66

77
error: invalid register `$tp`: reserved for TLS
8-
--> $DIR/bad-reg.rs:25:18
8+
--> $DIR/bad-reg.rs:24:18
99
|
1010
LL | asm!("", out("$tp") _);
1111
| ^^^^^^^^^^^^
1212

1313
error: invalid register `$sp`: the stack pointer cannot be used as an operand for inline asm
14-
--> $DIR/bad-reg.rs:27:18
14+
--> $DIR/bad-reg.rs:26:18
1515
|
1616
LL | asm!("", out("$sp") _);
1717
| ^^^^^^^^^^^^
1818

1919
error: invalid register `$r21`: reserved by the ABI
20-
--> $DIR/bad-reg.rs:29:18
20+
--> $DIR/bad-reg.rs:28:18
2121
|
2222
LL | asm!("", out("$r21") _);
2323
| ^^^^^^^^^^^^^
2424

2525
error: invalid register `$fp`: the frame pointer cannot be used as an operand for inline asm
26-
--> $DIR/bad-reg.rs:31:18
26+
--> $DIR/bad-reg.rs:30:18
2727
|
2828
LL | asm!("", out("$fp") _);
2929
| ^^^^^^^^^^^^
3030

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

tests/ui/asm/loongarch/bad-reg.loongarch64_lp64s.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
error: invalid register `$r0`: constant zero cannot be used as an operand for inline asm
2-
--> $DIR/bad-reg.rs:23:18
2+
--> $DIR/bad-reg.rs:22:18
33
|
44
LL | asm!("", out("$r0") _);
55
| ^^^^^^^^^^^^
66

77
error: invalid register `$tp`: reserved for TLS
8-
--> $DIR/bad-reg.rs:25:18
8+
--> $DIR/bad-reg.rs:24:18
99
|
1010
LL | asm!("", out("$tp") _);
1111
| ^^^^^^^^^^^^
1212

1313
error: invalid register `$sp`: the stack pointer cannot be used as an operand for inline asm
14-
--> $DIR/bad-reg.rs:27:18
14+
--> $DIR/bad-reg.rs:26:18
1515
|
1616
LL | asm!("", out("$sp") _);
1717
| ^^^^^^^^^^^^
1818

1919
error: invalid register `$r21`: reserved by the ABI
20-
--> $DIR/bad-reg.rs:29:18
20+
--> $DIR/bad-reg.rs:28:18
2121
|
2222
LL | asm!("", out("$r21") _);
2323
| ^^^^^^^^^^^^^
2424

2525
error: invalid register `$fp`: the frame pointer cannot be used as an operand for inline asm
26-
--> $DIR/bad-reg.rs:31:18
26+
--> $DIR/bad-reg.rs:30:18
2727
|
2828
LL | asm!("", out("$fp") _);
2929
| ^^^^^^^^^^^^
3030

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

3737
error: register class `freg` requires at least one of the following target features: d, f
38-
--> $DIR/bad-reg.rs:37:26
38+
--> $DIR/bad-reg.rs:36:26
3939
|
4040
LL | asm!("/* {} */", in(freg) f);
4141
| ^^^^^^^^^^
4242

4343
error: register class `freg` requires at least one of the following target features: d, f
44-
--> $DIR/bad-reg.rs:39:26
44+
--> $DIR/bad-reg.rs:38:26
4545
|
4646
LL | asm!("/* {} */", out(freg) _);
4747
| ^^^^^^^^^^^
4848

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

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

tests/ui/asm/loongarch/bad-reg.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ add-core-stubs
22
//@ needs-asm-support
33
//@ revisions: loongarch64_lp64d loongarch64_lp64s
4-
//@ min-llvm-version: 20
54
//@[loongarch64_lp64d] compile-flags: --target loongarch64-unknown-linux-gnu
65
//@[loongarch64_lp64d] needs-llvm-components: loongarch
76
//@[loongarch64_lp64s] compile-flags: --target loongarch64-unknown-none-softfloat

0 commit comments

Comments
 (0)