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: `w`, `x`
23 error: invalid asm template modifier for this register class
24 --> $DIR/bad-reg.rs:18:15
26 LL | asm!("{:r}", in(vreg) foo);
27 | ^^^^ ------------ argument
31 = note: the `vreg` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, `v`
33 error: invalid asm template modifier for this register class
34 --> $DIR/bad-reg.rs:20:15
36 LL | asm!("{:r}", in(vreg_low16) foo);
37 | ^^^^ ------------------ argument
41 = note: the `vreg_low16` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, `v`
43 error: asm template modifiers are not allowed for `const` arguments
44 --> $DIR/bad-reg.rs:22:15
46 LL | asm!("{:a}", const 0);
47 | ^^^^ ------- argument
51 error: asm template modifiers are not allowed for `sym` arguments
52 --> $DIR/bad-reg.rs:24:15
54 LL | asm!("{:a}", sym main);
55 | ^^^^ -------- argument
59 error: invalid register `x29`: the frame pointer cannot be used as an operand for inline asm
60 --> $DIR/bad-reg.rs:26:18
62 LL | asm!("", in("x29") foo);
65 error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
66 --> $DIR/bad-reg.rs:28:18
68 LL | asm!("", in("sp") foo);
71 error: invalid register `xzr`: the zero register cannot be used as an operand for inline asm
72 --> $DIR/bad-reg.rs:30:18
74 LL | asm!("", in("xzr") foo);
77 error: invalid register `x18`: x18 is used as a reserved register on some targets and cannot be used as an operand for inline asm
78 --> $DIR/bad-reg.rs:32:18
80 LL | asm!("", in("x18") foo);
83 error: invalid register `x19`: x19 is used internally by LLVM and cannot be used as an operand for inline asm
84 --> $DIR/bad-reg.rs:34:18
86 LL | asm!("", in("x19") foo);
89 error: register class `preg` can only be used as a clobber, not as an input or output
90 --> $DIR/bad-reg.rs:37:18
92 LL | asm!("", in("p0") foo);
95 error: register class `preg` can only be used as a clobber, not as an input or output
96 --> $DIR/bad-reg.rs:40:20
98 LL | asm!("{}", in(preg) foo);
101 error: register class `preg` can only be used as a clobber, not as an input or output
102 --> $DIR/bad-reg.rs:42:20
104 LL | asm!("{}", out(preg) _);
107 error: register `x0` conflicts with register `x0`
108 --> $DIR/bad-reg.rs:48:32
110 LL | asm!("", in("x0") foo, in("w0") bar);
111 | ------------ ^^^^^^^^^^^^ register `x0`
115 error: register `x0` conflicts with register `x0`
116 --> $DIR/bad-reg.rs:50:32
118 LL | asm!("", in("x0") foo, out("x0") bar);
119 | ------------ ^^^^^^^^^^^^^ register `x0`
123 help: use `lateout` instead of `out` to avoid conflict
124 --> $DIR/bad-reg.rs:50:18
126 LL | asm!("", in("x0") foo, out("x0") bar);
129 error: register `v0` conflicts with register `v0`
130 --> $DIR/bad-reg.rs:53:32
132 LL | asm!("", in("v0") foo, in("q0") bar);
133 | ------------ ^^^^^^^^^^^^ register `v0`
137 error: register `v0` conflicts with register `v0`
138 --> $DIR/bad-reg.rs:55:32
140 LL | asm!("", in("v0") foo, out("q0") bar);
141 | ------------ ^^^^^^^^^^^^^ register `v0`
145 help: use `lateout` instead of `out` to avoid conflict
146 --> $DIR/bad-reg.rs:55:18
148 LL | asm!("", in("v0") foo, out("q0") bar);
151 error: aborting due to 19 previous errors