2024-11-02 06:36:53 -05:00
|
|
|
error: invalid register `s1`: s1 is used internally by LLVM and cannot be used as an operand for inline asm
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:34:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("s1") _);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `fp`: the frame pointer cannot be used as an operand for inline asm
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:36:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("fp") _);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:38:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("sp") _);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `gp`: the global pointer cannot be used as an operand for inline asm
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:40:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("gp") _);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `gp`: the global pointer cannot be used as an operand for inline asm
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:42:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("gp") _);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `tp`: the thread pointer cannot be used as an operand for inline asm
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:44:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("tp") _);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `zero`: the zero register cannot be used as an operand for inline asm
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:46:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("zero") _);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `vreg` can only be used as a clobber, not as an input or output
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:97:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", in("v0") x);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `vreg` can only be used as a clobber, not as an input or output
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:100:18
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("v0") x);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `vreg` can only be used as a clobber, not as an input or output
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:103:26
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("/* {} */", in(vreg) x);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `vreg` can only be used as a clobber, not as an input or output
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:106:26
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("/* {} */", out(vreg) _);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `freg` requires at least one of the following target features: d, f
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:83:26
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("/* {} */", in(freg) f);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `freg` requires at least one of the following target features: d, f
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:85:26
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("/* {} */", out(freg) _);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `freg` requires at least one of the following target features: d, f
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:87:26
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("/* {} */", in(freg) d);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `freg` requires at least one of the following target features: d, f
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:90:26
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("/* {} */", out(freg) d);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:97:27
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", in("v0") x);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: register class `vreg` supports these types:
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:100:28
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", out("v0") x);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: register class `vreg` supports these types:
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
2024-11-03 03:32:04 -06:00
|
|
|
--> $DIR/bad-reg.rs:103:35
|
2024-11-02 06:36:53 -05:00
|
|
|
|
|
|
|
|
LL | asm!("/* {} */", in(vreg) x);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: register class `vreg` supports these types:
|
|
|
|
|
|
|
|
error: aborting due to 18 previous errors
|
|
|
|
|