2020-02-20 03:19:48 -06:00
|
|
|
error: invalid register class `foo`: unknown register class
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:14:20
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("{}", in(foo) foo);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `foo`: unknown register
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:16:18
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("foo") foo);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid asm template modifier for this register class
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:18:15
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("{:z}", in(reg) foo);
|
|
|
|
| ^^^^ ----------- argument
|
|
|
|
| |
|
|
|
|
| template modifier
|
|
|
|
|
|
2020-05-07 19:15:56 -05:00
|
|
|
= note: the `reg` register class supports the following template modifiers: `l`, `x`, `e`, `r`
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
error: invalid asm template modifier for this register class
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:20:15
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("{:r}", in(xmm_reg) foo);
|
|
|
|
| ^^^^ --------------- argument
|
|
|
|
| |
|
|
|
|
| template modifier
|
|
|
|
|
|
|
|
|
= note: the `xmm_reg` register class supports the following template modifiers: `x`, `y`, `z`
|
|
|
|
|
|
|
|
error: asm template modifiers are not allowed for `const` arguments
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:22:15
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("{:a}", const 0);
|
|
|
|
| ^^^^ ------- argument
|
|
|
|
| |
|
|
|
|
| template modifier
|
|
|
|
|
|
|
|
error: asm template modifiers are not allowed for `sym` arguments
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:24:15
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("{:a}", sym main);
|
|
|
|
| ^^^^ -------- argument
|
|
|
|
| |
|
|
|
|
| template modifier
|
|
|
|
|
|
|
|
error: invalid register `ebp`: the frame pointer cannot be used as an operand for inline asm
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:26:18
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("ebp") foo);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `rsp`: the stack pointer cannot be used as an operand for inline asm
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:28:18
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("rsp") foo);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid register `ip`: the instruction pointer cannot be used as an operand for inline asm
|
2021-12-09 18:15:33 -06:00
|
|
|
--> $DIR/bad-reg.rs:30:18
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("ip") foo);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2021-06-17 15:00:52 -05:00
|
|
|
error: register class `x87_reg` can only be used as a clobber, not as an input or output
|
2022-04-06 14:41:12 -05:00
|
|
|
--> $DIR/bad-reg.rs:33:18
|
2021-06-17 15:00:52 -05:00
|
|
|
|
|
2020-02-20 03:19:48 -06:00
|
|
|
LL | asm!("", in("st(2)") foo);
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2021-06-17 15:00:52 -05:00
|
|
|
error: register class `mmx_reg` can only be used as a clobber, not as an input or output
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:36:18
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("mm0") foo);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2022-04-06 14:41:12 -05:00
|
|
|
error: register class `kreg0` can only be used as a clobber, not as an input or output
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:39:18
|
2022-04-06 14:41:12 -05:00
|
|
|
|
|
|
|
|
LL | asm!("", in("k0") foo);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2021-06-17 15:00:52 -05:00
|
|
|
error: register class `x87_reg` can only be used as a clobber, not as an input or output
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:44:20
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
2021-06-17 15:00:52 -05:00
|
|
|
LL | asm!("{}", in(x87_reg) foo);
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2020-02-20 03:19:48 -06:00
|
|
|
|
2021-06-17 15:00:52 -05:00
|
|
|
error: register class `mmx_reg` can only be used as a clobber, not as an input or output
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:47:20
|
2021-04-04 11:44:46 -05:00
|
|
|
|
|
2021-06-17 15:00:52 -05:00
|
|
|
LL | asm!("{}", in(mmx_reg) foo);
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `x87_reg` can only be used as a clobber, not as an input or output
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:50:20
|
2021-06-17 15:00:52 -05:00
|
|
|
|
|
|
|
|
LL | asm!("{}", out(x87_reg) _);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register class `mmx_reg` can only be used as a clobber, not as an input or output
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:52:20
|
2021-06-17 15:00:52 -05:00
|
|
|
|
|
|
|
|
LL | asm!("{}", out(mmx_reg) _);
|
|
|
|
| ^^^^^^^^^^^^^^
|
2021-04-04 11:44:46 -05:00
|
|
|
|
2020-04-28 18:45:58 -05:00
|
|
|
error: register `al` conflicts with register `ax`
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:58:33
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("eax") foo, in("al") bar);
|
2020-04-28 18:45:58 -05:00
|
|
|
| ------------- ^^^^^^^^^^^^ register `al`
|
2020-02-20 03:19:48 -06:00
|
|
|
| |
|
|
|
|
| register `ax`
|
|
|
|
|
|
|
|
error: register `ax` conflicts with register `ax`
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:61:33
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("rax") foo, out("rax") bar);
|
|
|
|
| ------------- ^^^^^^^^^^^^^^ register `ax`
|
|
|
|
| |
|
|
|
|
| register `ax`
|
|
|
|
|
|
|
|
|
help: use `lateout` instead of `out` to avoid conflict
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:61:18
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("rax") foo, out("rax") bar);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: register `ymm0` conflicts with register `xmm0`
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:66:34
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("xmm0") foo, in("ymm0") bar);
|
|
|
|
| -------------- ^^^^^^^^^^^^^^ register `ymm0`
|
|
|
|
| |
|
|
|
|
| register `xmm0`
|
|
|
|
|
|
|
|
error: register `ymm0` conflicts with register `xmm0`
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:68:34
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("xmm0") foo, out("ymm0") bar);
|
|
|
|
| -------------- ^^^^^^^^^^^^^^^ register `ymm0`
|
|
|
|
| |
|
|
|
|
| register `xmm0`
|
|
|
|
|
|
|
|
|
help: use `lateout` instead of `out` to avoid conflict
|
2022-04-14 07:07:36 -05:00
|
|
|
--> $DIR/bad-reg.rs:68:18
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!("", in("xmm0") foo, out("ymm0") bar);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-14 07:07:36 -05:00
|
|
|
error: type `i32` cannot be used with this register class
|
|
|
|
--> $DIR/bad-reg.rs:33:30
|
|
|
|
|
|
|
|
|
LL | asm!("", in("st(2)") foo);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: register class `x87_reg` supports these types:
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
|
|
|
--> $DIR/bad-reg.rs:36:28
|
|
|
|
|
|
|
|
|
LL | asm!("", in("mm0") foo);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: register class `mmx_reg` supports these types:
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
|
|
|
--> $DIR/bad-reg.rs:39:27
|
|
|
|
|
|
|
|
|
LL | asm!("", in("k0") foo);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: register class `kreg0` supports these types:
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
|
|
|
--> $DIR/bad-reg.rs:44:32
|
|
|
|
|
|
|
|
|
LL | asm!("{}", in(x87_reg) foo);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: register class `x87_reg` supports these types:
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
|
|
|
--> $DIR/bad-reg.rs:47:32
|
|
|
|
|
|
|
|
|
LL | asm!("{}", in(mmx_reg) foo);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: register class `mmx_reg` supports these types:
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
|
|
|
--> $DIR/bad-reg.rs:58:42
|
|
|
|
|
|
|
|
|
LL | asm!("", in("eax") foo, in("al") bar);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: register class `reg_byte` supports these types: i8
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
|
|
|
--> $DIR/bad-reg.rs:63:27
|
|
|
|
|
|
|
|
|
LL | asm!("", in("al") foo, lateout("al") bar);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: register class `reg_byte` supports these types: i8
|
|
|
|
|
|
|
|
error: type `i32` cannot be used with this register class
|
|
|
|
--> $DIR/bad-reg.rs:63:46
|
|
|
|
|
|
|
|
|
LL | asm!("", in("al") foo, lateout("al") bar);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: register class `reg_byte` supports these types: i8
|
|
|
|
|
|
|
|
error: aborting due to 28 previous errors
|
2020-02-20 03:19:48 -06:00
|
|
|
|