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
|
error: invalid register `g0`: g0 is always zero and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:22:18
|
LL | asm!("", out("g0") _);
| ^^^^^^^^^^^
error: invalid register `g1`: reserved by LLVM and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:25:18
|
LL | asm!("", out("g1") _);
| ^^^^^^^^^^^
error: invalid register `g6`: reserved for system and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:32:18
|
LL | asm!("", out("g6") _);
| ^^^^^^^^^^^
error: invalid register `g7`: reserved for system and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:34:18
|
LL | asm!("", out("g7") _);
| ^^^^^^^^^^^
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 `fp`: the frame pointer cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:38:18
|
LL | asm!("", out("fp") _);
| ^^^^^^^^^^^
error: invalid register `i7`: the return address register cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:40:18
|
LL | asm!("", out("i7") _);
| ^^^^^^^^^^^
error: register class `yreg` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:46:18
|
LL | asm!("", in("y") x);
| ^^^^^^^^^
error: register class `yreg` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:49:18
|
LL | asm!("", out("y") x);
| ^^^^^^^^^^
error: register class `yreg` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:52:26
|
LL | asm!("/* {} */", in(yreg) x);
| ^^^^^^^^^^
error: register class `yreg` can only be used as a clobber, not as an input or output
--> $DIR/bad-reg.rs:55:26
|
LL | asm!("/* {} */", out(yreg) _);
| ^^^^^^^^^^^
error: cannot use register `r5`: g5 is reserved for system on SPARC32
--> $DIR/bad-reg.rs:30:18
|
LL | asm!("", out("g5") _);
| ^^^^^^^^^^^
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:46:26
|
LL | asm!("", in("y") x);
| ^
|
= note: register class `yreg` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:49:27
|
LL | asm!("", out("y") x);
| ^
|
= note: register class `yreg` supports these types:
error: type `i32` cannot be used with this register class
--> $DIR/bad-reg.rs:52:35
|
LL | asm!("/* {} */", in(yreg) x);
| ^
|
= note: register class `yreg` supports these types:
error: aborting due to 15 previous errors
|