1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
|
error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:36:18
|
LL | asm!("", out("sp") _);
| ^^^^^^^^^^^
error: invalid register `r2`: r2 is a system reserved register and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:38:18
|
LL | asm!("", out("r2") _);
| ^^^^^^^^^^^
error: invalid register `r29`: r29 is used internally by LLVM and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:42:18
|
LL | asm!("", out("r29") _);
| ^^^^^^^^^^^^
error: invalid register `r30`: r30 is used internally by LLVM and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:44:18
|
LL | asm!("", out("r30") _);
| ^^^^^^^^^^^^
error: invalid register `fp`: the frame pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:46:18
|
LL | asm!("", out("fp") _);
| ^^^^^^^^^^^
error: invalid register `vrsave`: the vrsave register cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:48:18
|
LL | asm!("", out("vrsave") _);
| ^^^^^^^^^^^^^^^
error: register class `cr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:96:18
|
LL | asm!("", in("cr") x);
| ^^^^^^^^^^
error: register class `cr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:99:18
|
LL | asm!("", out("cr") x);
| ^^^^^^^^^^^
error: register class `cr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:102:26
|
LL | asm!("/* {} */", in(cr) x);
| ^^^^^^^^
error: register class `cr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:105:26
|
LL | asm!("/* {} */", out(cr) _);
| ^^^^^^^^^
error: register class `ctr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:109:18
|
LL | asm!("", in("ctr") x);
| ^^^^^^^^^^^
error: register class `ctr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:112:18
|
LL | asm!("", out("ctr") x);
| ^^^^^^^^^^^^
error: register class `ctr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:115:26
|
LL | asm!("/* {} */", in(ctr) x);
| ^^^^^^^^^
error: register class `ctr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:118:26
|
LL | asm!("/* {} */", out(ctr) _);
| ^^^^^^^^^^
error: register class `lr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:122:18
|
LL | asm!("", in("lr") x);
| ^^^^^^^^^^
error: register class `lr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:125:18
|
LL | asm!("", out("lr") x);
| ^^^^^^^^^^^
error: register class `lr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:128:26
|
LL | asm!("/* {} */", in(lr) x);
| ^^^^^^^^
error: register class `lr` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:131:26
|
LL | asm!("/* {} */", out(lr) _);
| ^^^^^^^^^
error: register class `xer` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:135:18
|
LL | asm!("", in("xer") x);
| ^^^^^^^^^^^
error: register class `xer` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:138:18
|
LL | asm!("", out("xer") x);
| ^^^^^^^^^^^^
error: register class `xer` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:141:26
|
LL | asm!("/* {} */", in(xer) x);
| ^^^^^^^^^
error: register class `xer` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:144:26
|
LL | asm!("/* {} */", out(xer) _);
| ^^^^^^^^^^
error: register `cr0` conflicts with register `cr`
--> $DIR/bad-reg.rs:148:31
|
LL | asm!("", out("cr") _, out("cr0") _);
| ----------- ^^^^^^^^^^^^ register `cr0`
| |
| register `cr`
error: register `cr1` conflicts with register `cr`
--> $DIR/bad-reg.rs:150:31
|
LL | asm!("", out("cr") _, out("cr1") _);
| ----------- ^^^^^^^^^^^^ register `cr1`
| |
| register `cr`
error: register `cr2` conflicts with register `cr`
--> $DIR/bad-reg.rs:152:31
|
LL | asm!("", out("cr") _, out("cr2") _);
| ----------- ^^^^^^^^^^^^ register `cr2`
| |
| register `cr`
error: register `cr3` conflicts with register `cr`
--> $DIR/bad-reg.rs:154:31
|
LL | asm!("", out("cr") _, out("cr3") _);
| ----------- ^^^^^^^^^^^^ register `cr3`
| |
| register `cr`
error: register `cr4` conflicts with register `cr`
--> $DIR/bad-reg.rs:156:31
|
LL | asm!("", out("cr") _, out("cr4") _);
| ----------- ^^^^^^^^^^^^ register `cr4`
| |
| register `cr`
error: register `cr5` conflicts with register `cr`
--> $DIR/bad-reg.rs:158:31
|
LL | asm!("", out("cr") _, out("cr5") _);
| ----------- ^^^^^^^^^^^^ register `cr5`
| |
| register `cr`
error: register `cr6` conflicts with register `cr`
--> $DIR/bad-reg.rs:160:31
|
LL | asm!("", out("cr") _, out("cr6") _);
| ----------- ^^^^^^^^^^^^ register `cr6`
| |
| register `cr`
error: register `cr7` conflicts with register `cr`
--> $DIR/bad-reg.rs:162:31
|
LL | asm!("", out("cr") _, out("cr7") _);
| ----------- ^^^^^^^^^^^^ register `cr7`
| |
| register `cr`
error: cannot use register `r13`: r13 is a reserved register on this target
--> $DIR/bad-reg.rs:40:18
|
LL | asm!("", out("r13") _);
| ^^^^^^^^^^^^
error: `vsx` target feature is not enabled
--> $DIR/bad-reg.rs:57:27
|
LL | asm!("", in("v0") v64x2); // requires vsx
| ^^^^^
|
= note: this is required to use type `i64x2` with register class `vreg`
error: `vsx` target feature is not enabled
--> $DIR/bad-reg.rs:60:28
|
LL | asm!("", out("v0") v64x2); // requires vsx
| ^^^^^
|
= note: this is required to use type `i64x2` with register class `vreg`
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:63:27
|
LL | asm!("", in("v0") x); // FIXME: should be ok if vsx is available
| ^
|
= note: register class `vreg` supports these types: i8x16, i16x8, i32x4, f32x4, f32, f64, i64x2, f64x2
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:66:28
|
LL | asm!("", out("v0") x); // FIXME: should be ok if vsx is available
| ^
|
= note: register class `vreg` supports these types: i8x16, i16x8, i32x4, f32x4, f32, f64, i64x2, f64x2
error: `vsx` target feature is not enabled
--> $DIR/bad-reg.rs:71:35
|
LL | asm!("/* {} */", in(vreg) v64x2); // requires vsx
| ^^^^^
|
= note: this is required to use type `i64x2` with register class `vreg`
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:74:35
|
LL | asm!("/* {} */", in(vreg) x); // FIXME: should be ok if vsx is available
| ^
|
= note: register class `vreg` supports these types: i8x16, i16x8, i32x4, f32x4, f32, f64, i64x2, f64x2
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:96:27
|
LL | asm!("", in("cr") x);
| ^
|
= note: register class `cr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:99:28
|
LL | asm!("", out("cr") x);
| ^
|
= note: register class `cr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:102:33
|
LL | asm!("/* {} */", in(cr) x);
| ^
|
= note: register class `cr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:109:28
|
LL | asm!("", in("ctr") x);
| ^
|
= note: register class `ctr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:112:29
|
LL | asm!("", out("ctr") x);
| ^
|
= note: register class `ctr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:115:34
|
LL | asm!("/* {} */", in(ctr) x);
| ^
|
= note: register class `ctr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:122:27
|
LL | asm!("", in("lr") x);
| ^
|
= note: register class `lr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:125:28
|
LL | asm!("", out("lr") x);
| ^
|
= note: register class `lr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:128:33
|
LL | asm!("/* {} */", in(lr) x);
| ^
|
= note: register class `lr` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:135:28
|
LL | asm!("", in("xer") x);
| ^
|
= note: register class `xer` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:138:29
|
LL | asm!("", out("xer") x);
| ^
|
= note: register class `xer` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:141:34
|
LL | asm!("/* {} */", in(xer) x);
| ^
|
= note: register class `xer` supports these types:
error: aborting due to 49 previous errors
|