1 error: invalid register class `foo`: unknown register class
2 --> $DIR/bad-reg.rs:12:20
4 LL | asm!("{}", in(foo) foo);
7 error: invalid register `foo`: unknown register
8 --> $DIR/bad-reg.rs:14:18
10 LL | asm!("", in("foo") foo);
13 error: invalid asm template modifier for this register class
14 --> $DIR/bad-reg.rs:16:15
16 LL | asm!("{:z}", in(reg) foo);
17 | ^^^^ ----------- argument
21 = note: the `reg` register class supports the following template modifiers: `l`, `x`, `e`, `r`
23 error: invalid asm template modifier for this register class
24 --> $DIR/bad-reg.rs:18:15
26 LL | asm!("{:r}", in(xmm_reg) foo);
27 | ^^^^ --------------- argument
31 = note: the `xmm_reg` register class supports the following template modifiers: `x`, `y`, `z`
33 error: asm template modifiers are not allowed for `const` arguments
34 --> $DIR/bad-reg.rs:20:15
36 LL | asm!("{:a}", const 0);
37 | ^^^^ ------- argument
41 error: asm template modifiers are not allowed for `sym` arguments
42 --> $DIR/bad-reg.rs:22:15
44 LL | asm!("{:a}", sym main);
45 | ^^^^ -------- argument
49 error: register class `zmm_reg` requires the `avx512f` target feature
50 --> $DIR/bad-reg.rs:24:20
52 LL | asm!("{}", in(zmm_reg) foo);
55 error: register class `zmm_reg` requires the `avx512f` target feature
56 --> $DIR/bad-reg.rs:26:18
58 LL | asm!("", in("zmm0") foo);
61 error: invalid register `ebp`: the frame pointer cannot be used as an operand for inline asm
62 --> $DIR/bad-reg.rs:28:18
64 LL | asm!("", in("ebp") foo);
67 error: invalid register `rsp`: the stack pointer cannot be used as an operand for inline asm
68 --> $DIR/bad-reg.rs:30:18
70 LL | asm!("", in("rsp") foo);
73 error: invalid register `ip`: the instruction pointer cannot be used as an operand for inline asm
74 --> $DIR/bad-reg.rs:32:18
76 LL | asm!("", in("ip") foo);
79 error: invalid register `st(2)`: x87 registers are not currently supported as operands for inline asm
80 --> $DIR/bad-reg.rs:34:18
82 LL | asm!("", in("st(2)") foo);
85 error: invalid register `mm0`: MMX registers are not currently supported as operands for inline asm
86 --> $DIR/bad-reg.rs:36:18
88 LL | asm!("", in("mm0") foo);
91 error: invalid register `k0`: the k0 AVX mask register cannot be used as an operand for inline asm
92 --> $DIR/bad-reg.rs:38:18
94 LL | asm!("", in("k0") foo);
97 error: register `al` conflicts with register `ax`
98 --> $DIR/bad-reg.rs:44:33
100 LL | asm!("", in("eax") foo, in("al") bar);
101 | ------------- ^^^^^^^^^^^^ register `al`
105 error: register `ax` conflicts with register `ax`
106 --> $DIR/bad-reg.rs:46:33
108 LL | asm!("", in("rax") foo, out("rax") bar);
109 | ------------- ^^^^^^^^^^^^^^ register `ax`
113 help: use `lateout` instead of `out` to avoid conflict
114 --> $DIR/bad-reg.rs:46:18
116 LL | asm!("", in("rax") foo, out("rax") bar);
119 error: register `ymm0` conflicts with register `xmm0`
120 --> $DIR/bad-reg.rs:49:34
122 LL | asm!("", in("xmm0") foo, in("ymm0") bar);
123 | -------------- ^^^^^^^^^^^^^^ register `ymm0`
127 error: register `ymm0` conflicts with register `xmm0`
128 --> $DIR/bad-reg.rs:51:34
130 LL | asm!("", in("xmm0") foo, out("ymm0") bar);
131 | -------------- ^^^^^^^^^^^^^^^ register `ymm0`
135 help: use `lateout` instead of `out` to avoid conflict
136 --> $DIR/bad-reg.rs:51:18
138 LL | asm!("", in("xmm0") foo, out("ymm0") bar);
141 error: aborting due to 18 previous errors