]> git.proxmox.com Git - rustc.git/blob - src/test/ui/asm/bad-reg.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / asm / bad-reg.stderr
1 error: invalid register class `foo`: unknown register class
2 --> $DIR/bad-reg.rs:12:20
3 |
4 LL | asm!("{}", in(foo) foo);
5 | ^^^^^^^^^^^
6
7 error: invalid register `foo`: unknown register
8 --> $DIR/bad-reg.rs:14:18
9 |
10 LL | asm!("", in("foo") foo);
11 | ^^^^^^^^^^^^^
12
13 error: invalid asm template modifier for this register class
14 --> $DIR/bad-reg.rs:16:15
15 |
16 LL | 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
23 error: invalid asm template modifier for this register class
24 --> $DIR/bad-reg.rs:18:15
25 |
26 LL | 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
33 error: asm template modifiers are not allowed for `const` arguments
34 --> $DIR/bad-reg.rs:20:15
35 |
36 LL | asm!("{:a}", const 0);
37 | ^^^^ ------- argument
38 | |
39 | template modifier
40
41 error: asm template modifiers are not allowed for `sym` arguments
42 --> $DIR/bad-reg.rs:22:15
43 |
44 LL | asm!("{:a}", sym main);
45 | ^^^^ -------- argument
46 | |
47 | template modifier
48
49 error: register class `zmm_reg` requires the `avx512f` target feature
50 --> $DIR/bad-reg.rs:24:20
51 |
52 LL | asm!("{}", in(zmm_reg) foo);
53 | ^^^^^^^^^^^^^^^
54
55 error: register class `zmm_reg` requires the `avx512f` target feature
56 --> $DIR/bad-reg.rs:26:18
57 |
58 LL | asm!("", in("zmm0") foo);
59 | ^^^^^^^^^^^^^^
60
61 error: invalid register `ebp`: the frame pointer cannot be used as an operand for inline asm
62 --> $DIR/bad-reg.rs:28:18
63 |
64 LL | asm!("", in("ebp") foo);
65 | ^^^^^^^^^^^^^
66
67 error: invalid register `rsp`: the stack pointer cannot be used as an operand for inline asm
68 --> $DIR/bad-reg.rs:30:18
69 |
70 LL | asm!("", in("rsp") foo);
71 | ^^^^^^^^^^^^^
72
73 error: invalid register `ip`: the instruction pointer cannot be used as an operand for inline asm
74 --> $DIR/bad-reg.rs:32:18
75 |
76 LL | asm!("", in("ip") foo);
77 | ^^^^^^^^^^^^
78
79 error: invalid register `k0`: the k0 AVX mask register cannot be used as an operand for inline asm
80 --> $DIR/bad-reg.rs:34:18
81 |
82 LL | asm!("", in("k0") foo);
83 | ^^^^^^^^^^^^
84
85 error: invalid register `ah`: high byte registers cannot be used as an operand on x86_64
86 --> $DIR/bad-reg.rs:36:18
87 |
88 LL | asm!("", in("ah") foo);
89 | ^^^^^^^^^^^^
90
91 error: register class `x87_reg` can only be used as a clobber, not as an input or output
92 --> $DIR/bad-reg.rs:39:18
93 |
94 LL | asm!("", in("st(2)") foo);
95 | ^^^^^^^^^^^^^^^
96
97 error: register class `mmx_reg` can only be used as a clobber, not as an input or output
98 --> $DIR/bad-reg.rs:41:18
99 |
100 LL | asm!("", in("mm0") foo);
101 | ^^^^^^^^^^^^^
102
103 error: register class `x87_reg` can only be used as a clobber, not as an input or output
104 --> $DIR/bad-reg.rs:45:20
105 |
106 LL | asm!("{}", in(x87_reg) foo);
107 | ^^^^^^^^^^^^^^^
108
109 error: register class `mmx_reg` can only be used as a clobber, not as an input or output
110 --> $DIR/bad-reg.rs:47:20
111 |
112 LL | asm!("{}", in(mmx_reg) foo);
113 | ^^^^^^^^^^^^^^^
114
115 error: register class `x87_reg` can only be used as a clobber, not as an input or output
116 --> $DIR/bad-reg.rs:49:20
117 |
118 LL | asm!("{}", out(x87_reg) _);
119 | ^^^^^^^^^^^^^^
120
121 error: register class `mmx_reg` can only be used as a clobber, not as an input or output
122 --> $DIR/bad-reg.rs:51:20
123 |
124 LL | asm!("{}", out(mmx_reg) _);
125 | ^^^^^^^^^^^^^^
126
127 error: register `al` conflicts with register `ax`
128 --> $DIR/bad-reg.rs:57:33
129 |
130 LL | asm!("", in("eax") foo, in("al") bar);
131 | ------------- ^^^^^^^^^^^^ register `al`
132 | |
133 | register `ax`
134
135 error: register `ax` conflicts with register `ax`
136 --> $DIR/bad-reg.rs:59:33
137 |
138 LL | asm!("", in("rax") foo, out("rax") bar);
139 | ------------- ^^^^^^^^^^^^^^ register `ax`
140 | |
141 | register `ax`
142 |
143 help: use `lateout` instead of `out` to avoid conflict
144 --> $DIR/bad-reg.rs:59:18
145 |
146 LL | asm!("", in("rax") foo, out("rax") bar);
147 | ^^^^^^^^^^^^^
148
149 error: register `ymm0` conflicts with register `xmm0`
150 --> $DIR/bad-reg.rs:62:34
151 |
152 LL | asm!("", in("xmm0") foo, in("ymm0") bar);
153 | -------------- ^^^^^^^^^^^^^^ register `ymm0`
154 | |
155 | register `xmm0`
156
157 error: register `ymm0` conflicts with register `xmm0`
158 --> $DIR/bad-reg.rs:64:34
159 |
160 LL | asm!("", in("xmm0") foo, out("ymm0") bar);
161 | -------------- ^^^^^^^^^^^^^^^ register `ymm0`
162 | |
163 | register `xmm0`
164 |
165 help: use `lateout` instead of `out` to avoid conflict
166 --> $DIR/bad-reg.rs:64:18
167 |
168 LL | asm!("", in("xmm0") foo, out("ymm0") bar);
169 | ^^^^^^^^^^^^^^
170
171 error: aborting due to 23 previous errors
172