|
1 | 1 | error: invalid register class `foo`: unknown register class |
2 | | - --> $DIR/bad-reg.rs:12:20 |
| 2 | + --> $DIR/bad-reg.rs:17:20 |
3 | 3 | | |
4 | 4 | LL | asm!("{}", in(foo) foo); |
5 | 5 | | ^^^^^^^^^^^ |
6 | 6 | | |
7 | | - = note: the following register classes are supported on this target: `reg`, `vreg`, `vreg_low16`, `preg` |
| 7 | + = note: the following register classes are supported on this target: `reg`, `vreg`, `vreg_low16`, and `preg` |
8 | 8 |
|
9 | 9 | error: invalid register `foo`: unknown register |
10 | | - --> $DIR/bad-reg.rs:14:18 |
| 10 | + --> $DIR/bad-reg.rs:19:18 |
11 | 11 | | |
12 | 12 | LL | asm!("", in("foo") foo); |
13 | 13 | | ^^^^^^^^^^^^^ |
14 | 14 |
|
15 | | -error: invalid asm template modifier for this register class |
16 | | - --> $DIR/bad-reg.rs:16:15 |
| 15 | +error: invalid asm template modifier `z` for this register class |
| 16 | + --> $DIR/bad-reg.rs:21:15 |
17 | 17 | | |
18 | 18 | LL | asm!("{:z}", in(reg) foo); |
19 | 19 | | ^^^^ ----------- argument |
20 | 20 | | | |
21 | 21 | | template modifier |
22 | 22 | | |
23 | | - = note: the `reg` register class supports the following template modifiers: `w`, `x` |
| 23 | + = note: the `reg` register class supports the following template modifiers: `w` and `x` |
24 | 24 |
|
25 | | -error: invalid asm template modifier for this register class |
26 | | - --> $DIR/bad-reg.rs:18:15 |
| 25 | +error: invalid asm template modifier `r` for this register class |
| 26 | + --> $DIR/bad-reg.rs:23:15 |
27 | 27 | | |
28 | 28 | LL | asm!("{:r}", in(vreg) foo); |
29 | 29 | | ^^^^ ------------ argument |
30 | 30 | | | |
31 | 31 | | template modifier |
32 | 32 | | |
33 | | - = note: the `vreg` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, `v` |
| 33 | + = note: the `vreg` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, and `v` |
34 | 34 |
|
35 | | -error: invalid asm template modifier for this register class |
36 | | - --> $DIR/bad-reg.rs:20:15 |
| 35 | +error: invalid asm template modifier `r` for this register class |
| 36 | + --> $DIR/bad-reg.rs:25:15 |
37 | 37 | | |
38 | 38 | LL | asm!("{:r}", in(vreg_low16) foo); |
39 | 39 | | ^^^^ ------------------ argument |
40 | 40 | | | |
41 | 41 | | template modifier |
42 | 42 | | |
43 | | - = note: the `vreg_low16` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, `v` |
| 43 | + = note: the `vreg_low16` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, and `v` |
44 | 44 |
|
45 | 45 | error: asm template modifiers are not allowed for `const` arguments |
46 | | - --> $DIR/bad-reg.rs:22:15 |
| 46 | + --> $DIR/bad-reg.rs:27:15 |
47 | 47 | | |
48 | 48 | LL | asm!("{:a}", const 0); |
49 | 49 | | ^^^^ ------- argument |
50 | 50 | | | |
51 | 51 | | template modifier |
52 | 52 |
|
53 | 53 | error: asm template modifiers are not allowed for `sym` arguments |
54 | | - --> $DIR/bad-reg.rs:24:15 |
| 54 | + --> $DIR/bad-reg.rs:29:15 |
55 | 55 | | |
56 | 56 | LL | asm!("{:a}", sym main); |
57 | 57 | | ^^^^ -------- argument |
58 | 58 | | | |
59 | 59 | | template modifier |
60 | 60 |
|
61 | 61 | error: invalid register `x29`: the frame pointer cannot be used as an operand for inline asm |
62 | | - --> $DIR/bad-reg.rs:26:18 |
| 62 | + --> $DIR/bad-reg.rs:31:18 |
63 | 63 | | |
64 | 64 | LL | asm!("", in("x29") foo); |
65 | 65 | | ^^^^^^^^^^^^^ |
66 | 66 |
|
67 | 67 | error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm |
68 | | - --> $DIR/bad-reg.rs:28:18 |
| 68 | + --> $DIR/bad-reg.rs:33:18 |
69 | 69 | | |
70 | 70 | LL | asm!("", in("sp") foo); |
71 | 71 | | ^^^^^^^^^^^^ |
72 | 72 |
|
73 | 73 | error: invalid register `xzr`: the zero register cannot be used as an operand for inline asm |
74 | | - --> $DIR/bad-reg.rs:30:18 |
| 74 | + --> $DIR/bad-reg.rs:35:18 |
75 | 75 | | |
76 | 76 | LL | asm!("", in("xzr") foo); |
77 | 77 | | ^^^^^^^^^^^^^ |
78 | 78 |
|
79 | 79 | error: invalid register `x19`: x19 is used internally by LLVM and cannot be used as an operand for inline asm |
80 | | - --> $DIR/bad-reg.rs:32:18 |
| 80 | + --> $DIR/bad-reg.rs:37:18 |
81 | 81 | | |
82 | 82 | LL | asm!("", in("x19") foo); |
83 | 83 | | ^^^^^^^^^^^^^ |
84 | 84 |
|
85 | 85 | error: register class `preg` can only be used as a clobber, not as an input or output |
86 | | - --> $DIR/bad-reg.rs:35:18 |
| 86 | + --> $DIR/bad-reg.rs:40:18 |
87 | 87 | | |
88 | 88 | LL | asm!("", in("p0") foo); |
89 | 89 | | ^^^^^^^^^^^^ |
90 | 90 |
|
91 | 91 | error: register class `preg` can only be used as a clobber, not as an input or output |
92 | | - --> $DIR/bad-reg.rs:39:20 |
| 92 | + --> $DIR/bad-reg.rs:44:20 |
93 | 93 | | |
94 | 94 | LL | asm!("{}", in(preg) foo); |
95 | 95 | | ^^^^^^^^^^^^ |
96 | 96 |
|
97 | 97 | error: register class `preg` can only be used as a clobber, not as an input or output |
98 | | - --> $DIR/bad-reg.rs:42:20 |
| 98 | + --> $DIR/bad-reg.rs:47:20 |
99 | 99 | | |
100 | 100 | LL | asm!("{}", out(preg) _); |
101 | 101 | | ^^^^^^^^^^^ |
102 | 102 |
|
103 | 103 | error: register `w0` conflicts with register `x0` |
104 | | - --> $DIR/bad-reg.rs:48:32 |
| 104 | + --> $DIR/bad-reg.rs:53:32 |
105 | 105 | | |
106 | 106 | LL | asm!("", in("x0") foo, in("w0") bar); |
107 | 107 | | ------------ ^^^^^^^^^^^^ register `w0` |
108 | 108 | | | |
109 | 109 | | register `x0` |
110 | 110 |
|
111 | 111 | error: register `x0` conflicts with register `x0` |
112 | | - --> $DIR/bad-reg.rs:50:32 |
| 112 | + --> $DIR/bad-reg.rs:55:32 |
113 | 113 | | |
114 | 114 | LL | asm!("", in("x0") foo, out("x0") bar); |
115 | 115 | | ------------ ^^^^^^^^^^^^^ register `x0` |
116 | 116 | | | |
117 | 117 | | register `x0` |
118 | 118 | | |
119 | 119 | help: use `lateout` instead of `out` to avoid conflict |
120 | | - --> $DIR/bad-reg.rs:50:18 |
| 120 | + --> $DIR/bad-reg.rs:55:18 |
121 | 121 | | |
122 | 122 | LL | asm!("", in("x0") foo, out("x0") bar); |
123 | 123 | | ^^^^^^^^^^^^ |
124 | 124 |
|
125 | 125 | error: register `q0` conflicts with register `v0` |
126 | | - --> $DIR/bad-reg.rs:53:32 |
| 126 | + --> $DIR/bad-reg.rs:58:32 |
127 | 127 | | |
128 | 128 | LL | asm!("", in("v0") foo, in("q0") bar); |
129 | 129 | | ------------ ^^^^^^^^^^^^ register `q0` |
130 | 130 | | | |
131 | 131 | | register `v0` |
132 | 132 |
|
133 | 133 | error: register `q0` conflicts with register `v0` |
134 | | - --> $DIR/bad-reg.rs:55:32 |
| 134 | + --> $DIR/bad-reg.rs:60:32 |
135 | 135 | | |
136 | 136 | LL | asm!("", in("v0") foo, out("q0") bar); |
137 | 137 | | ------------ ^^^^^^^^^^^^^ register `q0` |
138 | 138 | | | |
139 | 139 | | register `v0` |
140 | 140 | | |
141 | 141 | help: use `lateout` instead of `out` to avoid conflict |
142 | | - --> $DIR/bad-reg.rs:55:18 |
| 142 | + --> $DIR/bad-reg.rs:60:18 |
143 | 143 | | |
144 | 144 | LL | asm!("", in("v0") foo, out("q0") bar); |
145 | 145 | | ^^^^^^^^^^^^ |
146 | 146 |
|
147 | 147 | error: type `i32` cannot be used with this register class |
148 | | - --> $DIR/bad-reg.rs:35:27 |
| 148 | + --> $DIR/bad-reg.rs:40:27 |
149 | 149 | | |
150 | 150 | LL | asm!("", in("p0") foo); |
151 | 151 | | ^^^ |
152 | 152 | | |
153 | 153 | = note: register class `preg` supports these types: |
154 | 154 |
|
155 | 155 | error: type `i32` cannot be used with this register class |
156 | | - --> $DIR/bad-reg.rs:39:29 |
| 156 | + --> $DIR/bad-reg.rs:44:29 |
157 | 157 | | |
158 | 158 | LL | asm!("{}", in(preg) foo); |
159 | 159 | | ^^^ |
|
0 commit comments