fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
6.8 KiB218 linesraw
1error: invalid register class `foo`: unknown register class
2  --> $DIR/bad-reg.rs:14:20
3   |
4LL |         asm!("{}", in(foo) foo);
5   |                    ^^^^^^^^^^^
6
7error: invalid register `foo`: unknown register
8  --> $DIR/bad-reg.rs:16:18
9   |
10LL |         asm!("", in("foo") foo);
11   |                  ^^^^^^^^^^^^^
12
13error: invalid asm template modifier for this register class
14  --> $DIR/bad-reg.rs:18:15
15   |
16LL |         asm!("{:z}", in(reg) foo);
17   |               ^^^^   ----------- argument
18   |               |
19   |               template modifier
20   |
21   = note: the `reg` register class supports the following template modifiers: `l`, `x`, `e`, `r`
22
23error: invalid asm template modifier for this register class
24  --> $DIR/bad-reg.rs:20:15
25   |
26LL |         asm!("{:r}", in(xmm_reg) foo);
27   |               ^^^^   --------------- argument
28   |               |
29   |               template modifier
30   |
31   = note: the `xmm_reg` register class supports the following template modifiers: `x`, `y`, `z`
32
33error: asm template modifiers are not allowed for `const` arguments
34  --> $DIR/bad-reg.rs:22:15
35   |
36LL |         asm!("{:a}", const 0);
37   |               ^^^^   ------- argument
38   |               |
39   |               template modifier
40
41error: asm template modifiers are not allowed for `sym` arguments
42  --> $DIR/bad-reg.rs:24:15
43   |
44LL |         asm!("{:a}", sym main);
45   |               ^^^^   -------- argument
46   |               |
47   |               template modifier
48
49error: invalid register `ebp`: the frame pointer cannot be used as an operand for inline asm
50  --> $DIR/bad-reg.rs:26:18
51   |
52LL |         asm!("", in("ebp") foo);
53   |                  ^^^^^^^^^^^^^
54
55error: invalid register `rsp`: the stack pointer cannot be used as an operand for inline asm
56  --> $DIR/bad-reg.rs:28:18
57   |
58LL |         asm!("", in("rsp") foo);
59   |                  ^^^^^^^^^^^^^
60
61error: invalid register `ip`: the instruction pointer cannot be used as an operand for inline asm
62  --> $DIR/bad-reg.rs:30:18
63   |
64LL |         asm!("", in("ip") foo);
65   |                  ^^^^^^^^^^^^
66
67error: register class `x87_reg` can only be used as a clobber, not as an input or output
68  --> $DIR/bad-reg.rs:33:18
69   |
70LL |         asm!("", in("st(2)") foo);
71   |                  ^^^^^^^^^^^^^^^
72
73error: register class `mmx_reg` can only be used as a clobber, not as an input or output
74  --> $DIR/bad-reg.rs:36:18
75   |
76LL |         asm!("", in("mm0") foo);
77   |                  ^^^^^^^^^^^^^
78
79error: register class `kreg0` can only be used as a clobber, not as an input or output
80  --> $DIR/bad-reg.rs:39:18
81   |
82LL |         asm!("", in("k0") foo);
83   |                  ^^^^^^^^^^^^
84
85error: register class `x87_reg` can only be used as a clobber, not as an input or output
86  --> $DIR/bad-reg.rs:44:20
87   |
88LL |         asm!("{}", in(x87_reg) foo);
89   |                    ^^^^^^^^^^^^^^^
90
91error: register class `mmx_reg` can only be used as a clobber, not as an input or output
92  --> $DIR/bad-reg.rs:47:20
93   |
94LL |         asm!("{}", in(mmx_reg) foo);
95   |                    ^^^^^^^^^^^^^^^
96
97error: register class `x87_reg` can only be used as a clobber, not as an input or output
98  --> $DIR/bad-reg.rs:50:20
99   |
100LL |         asm!("{}", out(x87_reg) _);
101   |                    ^^^^^^^^^^^^^^
102
103error: register class `mmx_reg` can only be used as a clobber, not as an input or output
104  --> $DIR/bad-reg.rs:52:20
105   |
106LL |         asm!("{}", out(mmx_reg) _);
107   |                    ^^^^^^^^^^^^^^
108
109error: register `al` conflicts with register `ax`
110  --> $DIR/bad-reg.rs:58:33
111   |
112LL |         asm!("", in("eax") foo, in("al") bar);
113   |                  -------------  ^^^^^^^^^^^^ register `al`
114   |                  |
115   |                  register `ax`
116
117error: register `ax` conflicts with register `ax`
118  --> $DIR/bad-reg.rs:61:33
119   |
120LL |         asm!("", in("rax") foo, out("rax") bar);
121   |                  -------------  ^^^^^^^^^^^^^^ register `ax`
122   |                  |
123   |                  register `ax`
124   |
125help: use `lateout` instead of `out` to avoid conflict
126  --> $DIR/bad-reg.rs:61:18
127   |
128LL |         asm!("", in("rax") foo, out("rax") bar);
129   |                  ^^^^^^^^^^^^^
130
131error: register `ymm0` conflicts with register `xmm0`
132  --> $DIR/bad-reg.rs:66:34
133   |
134LL |         asm!("", in("xmm0") foo, in("ymm0") bar);
135   |                  --------------  ^^^^^^^^^^^^^^ register `ymm0`
136   |                  |
137   |                  register `xmm0`
138
139error: register `ymm0` conflicts with register `xmm0`
140  --> $DIR/bad-reg.rs:68:34
141   |
142LL |         asm!("", in("xmm0") foo, out("ymm0") bar);
143   |                  --------------  ^^^^^^^^^^^^^^^ register `ymm0`
144   |                  |
145   |                  register `xmm0`
146   |
147help: use `lateout` instead of `out` to avoid conflict
148  --> $DIR/bad-reg.rs:68:18
149   |
150LL |         asm!("", in("xmm0") foo, out("ymm0") bar);
151   |                  ^^^^^^^^^^^^^^
152
153error: type `i32` cannot be used with this register class
154  --> $DIR/bad-reg.rs:33:30
155   |
156LL |         asm!("", in("st(2)") foo);
157   |                              ^^^
158   |
159   = note: register class `x87_reg` supports these types: 
160
161error: type `i32` cannot be used with this register class
162  --> $DIR/bad-reg.rs:36:28
163   |
164LL |         asm!("", in("mm0") foo);
165   |                            ^^^
166   |
167   = note: register class `mmx_reg` supports these types: 
168
169error: type `i32` cannot be used with this register class
170  --> $DIR/bad-reg.rs:39:27
171   |
172LL |         asm!("", in("k0") foo);
173   |                           ^^^
174   |
175   = note: register class `kreg0` supports these types: 
176
177error: type `i32` cannot be used with this register class
178  --> $DIR/bad-reg.rs:44:32
179   |
180LL |         asm!("{}", in(x87_reg) foo);
181   |                                ^^^
182   |
183   = note: register class `x87_reg` supports these types: 
184
185error: type `i32` cannot be used with this register class
186  --> $DIR/bad-reg.rs:47:32
187   |
188LL |         asm!("{}", in(mmx_reg) foo);
189   |                                ^^^
190   |
191   = note: register class `mmx_reg` supports these types: 
192
193error: type `i32` cannot be used with this register class
194  --> $DIR/bad-reg.rs:58:42
195   |
196LL |         asm!("", in("eax") foo, in("al") bar);
197   |                                          ^^^
198   |
199   = note: register class `reg_byte` supports these types: i8
200
201error: type `i32` cannot be used with this register class
202  --> $DIR/bad-reg.rs:63:27
203   |
204LL |         asm!("", in("al") foo, lateout("al") bar);
205   |                           ^^^
206   |
207   = note: register class `reg_byte` supports these types: i8
208
209error: type `i32` cannot be used with this register class
210  --> $DIR/bad-reg.rs:63:46
211   |
212LL |         asm!("", in("al") foo, lateout("al") bar);
213   |                                              ^^^
214   |
215   = note: register class `reg_byte` supports these types: i8
216
217error: aborting due to 28 previous errors
218