11error: invalid register class `foo`: unknown register class
2- --> $DIR/bad-reg.rs:14 :20
2+ --> $DIR/bad-reg.rs:12 :20
33 |
44LL | asm!("{}", in(foo) foo);
55 | ^^^^^^^^^^^
66
77error: invalid register `foo`: unknown register
8- --> $DIR/bad-reg.rs:16 :18
8+ --> $DIR/bad-reg.rs:14 :18
99 |
1010LL | asm!("", in("foo") foo);
1111 | ^^^^^^^^^^^^^
1212
1313error: invalid asm template modifier for this register class
14- --> $DIR/bad-reg.rs:18 :15
14+ --> $DIR/bad-reg.rs:16 :15
1515 |
1616LL | asm!("{:z}", in(reg) foo);
1717 | ^^^^ ----------- argument
@@ -21,7 +21,7 @@ LL | asm!("{:z}", in(reg) foo);
2121 = note: the `reg` register class supports the following template modifiers: `w`, `x`
2222
2323error: invalid asm template modifier for this register class
24- --> $DIR/bad-reg.rs:20 :15
24+ --> $DIR/bad-reg.rs:18 :15
2525 |
2626LL | asm!("{:r}", in(vreg) foo);
2727 | ^^^^ ------------ argument
@@ -31,7 +31,7 @@ LL | asm!("{:r}", in(vreg) foo);
3131 = note: the `vreg` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, `v`
3232
3333error: invalid asm template modifier for this register class
34- --> $DIR/bad-reg.rs:22 :15
34+ --> $DIR/bad-reg.rs:20 :15
3535 |
3636LL | asm!("{:r}", in(vreg_low16) foo);
3737 | ^^^^ ------------------ argument
@@ -41,117 +41,117 @@ LL | asm!("{:r}", in(vreg_low16) foo);
4141 = note: the `vreg_low16` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, `v`
4242
4343error: asm template modifiers are not allowed for `const` arguments
44- --> $DIR/bad-reg.rs:24 :15
44+ --> $DIR/bad-reg.rs:22 :15
4545 |
4646LL | asm!("{:a}", const 0);
4747 | ^^^^ ------- argument
4848 | |
4949 | template modifier
5050
5151error: asm template modifiers are not allowed for `sym` arguments
52- --> $DIR/bad-reg.rs:26 :15
52+ --> $DIR/bad-reg.rs:24 :15
5353 |
5454LL | asm!("{:a}", sym main);
5555 | ^^^^ -------- argument
5656 | |
5757 | template modifier
5858
5959error: invalid register `x29`: the frame pointer cannot be used as an operand for inline asm
60- --> $DIR/bad-reg.rs:28 :18
60+ --> $DIR/bad-reg.rs:26 :18
6161 |
6262LL | asm!("", in("x29") foo);
6363 | ^^^^^^^^^^^^^
6464
6565error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
66- --> $DIR/bad-reg.rs:30 :18
66+ --> $DIR/bad-reg.rs:28 :18
6767 |
6868LL | asm!("", in("sp") foo);
6969 | ^^^^^^^^^^^^
7070
7171error: invalid register `xzr`: the zero register cannot be used as an operand for inline asm
72- --> $DIR/bad-reg.rs:32 :18
72+ --> $DIR/bad-reg.rs:30 :18
7373 |
7474LL | asm!("", in("xzr") foo);
7575 | ^^^^^^^^^^^^^
7676
7777error: invalid register `x19`: x19 is used internally by LLVM and cannot be used as an operand for inline asm
78- --> $DIR/bad-reg.rs:34 :18
78+ --> $DIR/bad-reg.rs:32 :18
7979 |
8080LL | asm!("", in("x19") foo);
8181 | ^^^^^^^^^^^^^
8282
8383error: register class `preg` can only be used as a clobber, not as an input or output
84- --> $DIR/bad-reg.rs:37 :18
84+ --> $DIR/bad-reg.rs:35 :18
8585 |
8686LL | asm!("", in("p0") foo);
8787 | ^^^^^^^^^^^^
8888
8989error: register class `preg` can only be used as a clobber, not as an input or output
90- --> $DIR/bad-reg.rs:41 :20
90+ --> $DIR/bad-reg.rs:39 :20
9191 |
9292LL | asm!("{}", in(preg) foo);
9393 | ^^^^^^^^^^^^
9494
9595error: register class `preg` can only be used as a clobber, not as an input or output
96- --> $DIR/bad-reg.rs:44 :20
96+ --> $DIR/bad-reg.rs:42 :20
9797 |
9898LL | asm!("{}", out(preg) _);
9999 | ^^^^^^^^^^^
100100
101101error: register `w0` conflicts with register `x0`
102- --> $DIR/bad-reg.rs:50 :32
102+ --> $DIR/bad-reg.rs:48 :32
103103 |
104104LL | asm!("", in("x0") foo, in("w0") bar);
105105 | ------------ ^^^^^^^^^^^^ register `w0`
106106 | |
107107 | register `x0`
108108
109109error: register `x0` conflicts with register `x0`
110- --> $DIR/bad-reg.rs:52 :32
110+ --> $DIR/bad-reg.rs:50 :32
111111 |
112112LL | asm!("", in("x0") foo, out("x0") bar);
113113 | ------------ ^^^^^^^^^^^^^ register `x0`
114114 | |
115115 | register `x0`
116116 |
117117help: use `lateout` instead of `out` to avoid conflict
118- --> $DIR/bad-reg.rs:52 :18
118+ --> $DIR/bad-reg.rs:50 :18
119119 |
120120LL | asm!("", in("x0") foo, out("x0") bar);
121121 | ^^^^^^^^^^^^
122122
123123error: register `q0` conflicts with register `v0`
124- --> $DIR/bad-reg.rs:55 :32
124+ --> $DIR/bad-reg.rs:53 :32
125125 |
126126LL | asm!("", in("v0") foo, in("q0") bar);
127127 | ------------ ^^^^^^^^^^^^ register `q0`
128128 | |
129129 | register `v0`
130130
131131error: register `q0` conflicts with register `v0`
132- --> $DIR/bad-reg.rs:57 :32
132+ --> $DIR/bad-reg.rs:55 :32
133133 |
134134LL | asm!("", in("v0") foo, out("q0") bar);
135135 | ------------ ^^^^^^^^^^^^^ register `q0`
136136 | |
137137 | register `v0`
138138 |
139139help: use `lateout` instead of `out` to avoid conflict
140- --> $DIR/bad-reg.rs:57 :18
140+ --> $DIR/bad-reg.rs:55 :18
141141 |
142142LL | asm!("", in("v0") foo, out("q0") bar);
143143 | ^^^^^^^^^^^^
144144
145145error: type `i32` cannot be used with this register class
146- --> $DIR/bad-reg.rs:37 :27
146+ --> $DIR/bad-reg.rs:35 :27
147147 |
148148LL | asm!("", in("p0") foo);
149149 | ^^^
150150 |
151151 = note: register class `preg` supports these types:
152152
153153error: type `i32` cannot be used with this register class
154- --> $DIR/bad-reg.rs:41 :29
154+ --> $DIR/bad-reg.rs:39 :29
155155 |
156156LL | asm!("{}", in(preg) foo);
157157 | ^^^
0 commit comments