11error: invalid register class `foo`: unknown register class
2- --> $DIR/bad-reg.rs:12 :20
2+ --> $DIR/bad-reg.rs:20 :20
33 |
44LL | asm!("{}", in(foo) foo);
55 | ^^^^^^^^^^^
66 |
77 = note: the following register classes are supported on this target: `reg`, `reg_abcd`, `reg_byte`, `xmm_reg`, `ymm_reg`, `zmm_reg`, `kreg`, `kreg0`, `mmx_reg`, `x87_reg`, `tmm_reg`
88
99error: invalid register `foo`: unknown register
10- --> $DIR/bad-reg.rs:14 :18
10+ --> $DIR/bad-reg.rs:22 :18
1111 |
1212LL | asm!("", in("foo") foo);
1313 | ^^^^^^^^^^^^^
1414
1515error: invalid asm template modifier for this register class
16- --> $DIR/bad-reg.rs:16 :15
16+ --> $DIR/bad-reg.rs:24 :15
1717 |
1818LL | asm!("{:z}", in(reg) foo);
1919 | ^^^^ ----------- argument
@@ -23,7 +23,7 @@ LL | asm!("{:z}", in(reg) foo);
2323 = note: the `reg` register class supports the following template modifiers: `l`, `x`, `e`, `r`
2424
2525error: invalid asm template modifier for this register class
26- --> $DIR/bad-reg.rs:18 :15
26+ --> $DIR/bad-reg.rs:26 :15
2727 |
2828LL | asm!("{:r}", in(xmm_reg) foo);
2929 | ^^^^ --------------- argument
@@ -33,183 +33,183 @@ LL | asm!("{:r}", in(xmm_reg) foo);
3333 = note: the `xmm_reg` register class supports the following template modifiers: `x`, `y`, `z`
3434
3535error: asm template modifiers are not allowed for `const` arguments
36- --> $DIR/bad-reg.rs:20 :15
36+ --> $DIR/bad-reg.rs:28 :15
3737 |
3838LL | asm!("{:a}", const 0);
3939 | ^^^^ ------- argument
4040 | |
4141 | template modifier
4242
4343error: asm template modifiers are not allowed for `sym` arguments
44- --> $DIR/bad-reg.rs:22 :15
44+ --> $DIR/bad-reg.rs:30 :15
4545 |
4646LL | asm!("{:a}", sym main);
4747 | ^^^^ -------- argument
4848 | |
4949 | template modifier
5050
5151error: invalid register `ebp`: the frame pointer cannot be used as an operand for inline asm
52- --> $DIR/bad-reg.rs:24 :18
52+ --> $DIR/bad-reg.rs:32 :18
5353 |
5454LL | asm!("", in("ebp") foo);
5555 | ^^^^^^^^^^^^^
5656
5757error: invalid register `rsp`: the stack pointer cannot be used as an operand for inline asm
58- --> $DIR/bad-reg.rs:26 :18
58+ --> $DIR/bad-reg.rs:34 :18
5959 |
6060LL | asm!("", in("rsp") foo);
6161 | ^^^^^^^^^^^^^
6262
6363error: invalid register `ip`: the instruction pointer cannot be used as an operand for inline asm
64- --> $DIR/bad-reg.rs:28 :18
64+ --> $DIR/bad-reg.rs:36 :18
6565 |
6666LL | asm!("", in("ip") foo);
6767 | ^^^^^^^^^^^^
6868
6969error: register class `x87_reg` can only be used as a clobber, not as an input or output
70- --> $DIR/bad-reg.rs:31 :18
70+ --> $DIR/bad-reg.rs:39 :18
7171 |
7272LL | asm!("", in("st(2)") foo);
7373 | ^^^^^^^^^^^^^^^
7474
7575error: register class `mmx_reg` can only be used as a clobber, not as an input or output
76- --> $DIR/bad-reg.rs:34 :18
76+ --> $DIR/bad-reg.rs:42 :18
7777 |
7878LL | asm!("", in("mm0") foo);
7979 | ^^^^^^^^^^^^^
8080
8181error: register class `kreg0` can only be used as a clobber, not as an input or output
82- --> $DIR/bad-reg.rs:37 :18
82+ --> $DIR/bad-reg.rs:45 :18
8383 |
8484LL | asm!("", in("k0") foo);
8585 | ^^^^^^^^^^^^
8686
8787error: register class `x87_reg` can only be used as a clobber, not as an input or output
88- --> $DIR/bad-reg.rs:42 :20
88+ --> $DIR/bad-reg.rs:50 :20
8989 |
9090LL | asm!("{}", in(x87_reg) foo);
9191 | ^^^^^^^^^^^^^^^
9292
9393error: register class `mmx_reg` can only be used as a clobber, not as an input or output
94- --> $DIR/bad-reg.rs:45 :20
94+ --> $DIR/bad-reg.rs:53 :20
9595 |
9696LL | asm!("{}", in(mmx_reg) foo);
9797 | ^^^^^^^^^^^^^^^
9898
9999error: register class `x87_reg` can only be used as a clobber, not as an input or output
100- --> $DIR/bad-reg.rs:48 :20
100+ --> $DIR/bad-reg.rs:56 :20
101101 |
102102LL | asm!("{}", out(x87_reg) _);
103103 | ^^^^^^^^^^^^^^
104104
105105error: register class `mmx_reg` can only be used as a clobber, not as an input or output
106- --> $DIR/bad-reg.rs:50 :20
106+ --> $DIR/bad-reg.rs:58 :20
107107 |
108108LL | asm!("{}", out(mmx_reg) _);
109109 | ^^^^^^^^^^^^^^
110110
111111error: register `al` conflicts with register `eax`
112- --> $DIR/bad-reg.rs:56 :33
112+ --> $DIR/bad-reg.rs:64 :33
113113 |
114114LL | asm!("", in("eax") foo, in("al") bar);
115115 | ------------- ^^^^^^^^^^^^ register `al`
116116 | |
117117 | register `eax`
118118
119119error: register `rax` conflicts with register `rax`
120- --> $DIR/bad-reg.rs:59 :33
120+ --> $DIR/bad-reg.rs:67 :33
121121 |
122122LL | asm!("", in("rax") foo, out("rax") bar);
123123 | ------------- ^^^^^^^^^^^^^^ register `rax`
124124 | |
125125 | register `rax`
126126 |
127127help: use `lateout` instead of `out` to avoid conflict
128- --> $DIR/bad-reg.rs:59 :18
128+ --> $DIR/bad-reg.rs:67 :18
129129 |
130130LL | asm!("", in("rax") foo, out("rax") bar);
131131 | ^^^^^^^^^^^^^
132132
133133error: register `ymm0` conflicts with register `xmm0`
134- --> $DIR/bad-reg.rs:64 :34
134+ --> $DIR/bad-reg.rs:72 :34
135135 |
136136LL | asm!("", in("xmm0") foo, in("ymm0") bar);
137137 | -------------- ^^^^^^^^^^^^^^ register `ymm0`
138138 | |
139139 | register `xmm0`
140140
141141error: register `ymm0` conflicts with register `xmm0`
142- --> $DIR/bad-reg.rs:66 :34
142+ --> $DIR/bad-reg.rs:74 :34
143143 |
144144LL | asm!("", in("xmm0") foo, out("ymm0") bar);
145145 | -------------- ^^^^^^^^^^^^^^^ register `ymm0`
146146 | |
147147 | register `xmm0`
148148 |
149149help: use `lateout` instead of `out` to avoid conflict
150- --> $DIR/bad-reg.rs:66 :18
150+ --> $DIR/bad-reg.rs:74 :18
151151 |
152152LL | asm!("", in("xmm0") foo, out("ymm0") bar);
153153 | ^^^^^^^^^^^^^^
154154
155155error: type `i32` cannot be used with this register class
156- --> $DIR/bad-reg.rs:31 :30
156+ --> $DIR/bad-reg.rs:39 :30
157157 |
158158LL | asm!("", in("st(2)") foo);
159159 | ^^^
160160 |
161161 = note: register class `x87_reg` supports these types:
162162
163163error: type `i32` cannot be used with this register class
164- --> $DIR/bad-reg.rs:34 :28
164+ --> $DIR/bad-reg.rs:42 :28
165165 |
166166LL | asm!("", in("mm0") foo);
167167 | ^^^
168168 |
169169 = note: register class `mmx_reg` supports these types:
170170
171171error: type `i32` cannot be used with this register class
172- --> $DIR/bad-reg.rs:37 :27
172+ --> $DIR/bad-reg.rs:45 :27
173173 |
174174LL | asm!("", in("k0") foo);
175175 | ^^^
176176 |
177177 = note: register class `kreg0` supports these types:
178178
179179error: type `i32` cannot be used with this register class
180- --> $DIR/bad-reg.rs:42 :32
180+ --> $DIR/bad-reg.rs:50 :32
181181 |
182182LL | asm!("{}", in(x87_reg) foo);
183183 | ^^^
184184 |
185185 = note: register class `x87_reg` supports these types:
186186
187187error: type `i32` cannot be used with this register class
188- --> $DIR/bad-reg.rs:45 :32
188+ --> $DIR/bad-reg.rs:53 :32
189189 |
190190LL | asm!("{}", in(mmx_reg) foo);
191191 | ^^^
192192 |
193193 = note: register class `mmx_reg` supports these types:
194194
195195error: type `i32` cannot be used with this register class
196- --> $DIR/bad-reg.rs:56 :42
196+ --> $DIR/bad-reg.rs:64 :42
197197 |
198198LL | asm!("", in("eax") foo, in("al") bar);
199199 | ^^^
200200 |
201201 = note: register class `reg_byte` supports these types: i8
202202
203203error: type `i32` cannot be used with this register class
204- --> $DIR/bad-reg.rs:61 :27
204+ --> $DIR/bad-reg.rs:69 :27
205205 |
206206LL | asm!("", in("al") foo, lateout("al") bar);
207207 | ^^^
208208 |
209209 = note: register class `reg_byte` supports these types: i8
210210
211211error: type `i32` cannot be used with this register class
212- --> $DIR/bad-reg.rs:61 :46
212+ --> $DIR/bad-reg.rs:69 :46
213213 |
214214LL | asm!("", in("al") foo, lateout("al") bar);
215215 | ^^^
0 commit comments