[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / MC / Sparc / sparcv9-instructions.s
blob0ca2e50989ca9610a6b8f20c7748043716c3d5cf
1 ! RUN: not llvm-mc %s -triple=sparc -show-encoding 2>&1 | FileCheck %s --check-prefix=V8
2 ! RUN: llvm-mc %s -triple=sparcv9 -show-encoding | FileCheck %s --check-prefix=V9
4 ! V8: error: invalid instruction mnemonic
5 ! V8-NEXT: addc %g2, %g1, %g3
6 ! V9: addx %g2, %g1, %g3 ! encoding: [0x86,0x40,0x80,0x01]
7 addc %g2, %g1, %g3
9 ! V8: error: invalid instruction mnemonic
10 ! V8-NEXT: addccc %g1, %g2, %g3
11 ! V9: addxcc %g1, %g2, %g3 ! encoding: [0x86,0xc0,0x40,0x02]
12 addccc %g1, %g2, %g3
14 ! V8: error: invalid instruction mnemonic
15 ! V8-NEXT: subc %g2, %g1, %g3
16 ! V9: subx %g2, %g1, %g3 ! encoding: [0x86,0x60,0x80,0x01]
17 subc %g2, %g1, %g3
19 ! V8: error: invalid instruction mnemonic
20 ! V8-NEXT: subccc %g1, %g2, %g3
21 ! V9: subxcc %g1, %g2, %g3 ! encoding: [0x86,0xe0,0x40,0x02]
22 subccc %g1, %g2, %g3
24 ! V8: error: instruction requires a CPU feature not currently enabled
25 ! V8-NEXT: popc %g1, %g2
26 ! V9: popc %g1, %g2 ! encoding: [0x85,0x70,0x00,0x01]
27 popc %g1, %g2
30 ! V8: error: instruction requires a CPU feature not currently enabled
31 ! V8-NEXT: signx %g1, %g2
32 ! V9: sra %g1, %g0, %g2 ! encoding: [0x85,0x38,0x40,0x00]
33 signx %g1, %g2
34 ! V8: error: instruction requires a CPU feature not currently enabled
35 ! V8-NEXT: signx %g1
36 ! V9: sra %g1, %g0, %g1 ! encoding: [0x83,0x38,0x40,0x00]
37 signx %g1
39 ! V8: error: invalid instruction mnemonic
40 ! V8-NEXT: lduw [%i0 + %l6], %o2
41 ! V9: ld [%i0+%l6], %o2 ! encoding: [0xd4,0x06,0x00,0x16]
42 lduw [%i0 + %l6], %o2
43 ! V8: error: invalid instruction mnemonic
44 ! V8-NEXT: lduw [%i0 + 32], %o2
45 ! V9: ld [%i0+32], %o2 ! encoding: [0xd4,0x06,0x20,0x20]
46 lduw [%i0 + 32], %o2
47 ! V8: error: invalid instruction mnemonic
48 ! V8-NEXT: lduw [%g1], %o2
49 ! V9: ld [%g1], %o2 ! encoding: [0xd4,0x00,0x40,0x00]
50 lduw [%g1], %o2
51 ! V8: error: invalid instruction mnemonic
52 ! V8-NEXT: lduwa [%i0 + %l6] 131, %o2
53 ! V9: lda [%i0+%l6] #ASI_SNF, %o2 ! encoding: [0xd4,0x86,0x10,0x76]
54 lduwa [%i0 + %l6] 131, %o2
55 ! V8: error: invalid instruction mnemonic
56 ! V8-NEXT: lduwa [%i0 + %l6] (130+1), %o2
57 ! V9: lda [%i0+%l6] #ASI_SNF, %o2 ! encoding: [0xd4,0x86,0x10,0x76]
58 lduwa [%i0 + %l6] (130+1), %o2
60 ! V9: ldsw [%i0+%l6], %o2 ! encoding: [0xd4,0x46,0x00,0x16]
61 ldsw [%i0 + %l6], %o2
62 ! V9: ldsw [%i0+32], %o2 ! encoding: [0xd4,0x46,0x20,0x20]
63 ldsw [%i0 + 32], %o2
64 ! V9: ldsw [%g1], %o2 ! encoding: [0xd4,0x40,0x40,0x00]
65 ldsw [%g1], %o2
66 ! V9: ldswa [%i0+%l6] #ASI_SNF, %o2 ! encoding: [0xd4,0xc6,0x10,0x76]
67 ldswa [%i0 + %l6] 131, %o2
68 ! V9: ldswa [%i0+%l6] #ASI_SNF, %o2 ! encoding: [0xd4,0xc6,0x10,0x76]
69 ldswa [%i0 + %l6] (130+1), %o2
71 ! V8: error: instruction requires a CPU feature not currently enabled
72 ! V8-NEXT: lda [%l0] 0xf0, %f29
73 ! V9: lda [%l0] 240, %f29 ! encoding: [0xfb,0x84,0x1e,0x00]
74 lda [%l0] 0xf0, %f29
75 ! V8: error: instruction requires a CPU feature not currently enabled
76 ! V8-NEXT: lda [%l0] (0xef+0x01), %f29
77 ! V9: lda [%l0] 240, %f29 ! encoding: [0xfb,0x84,0x1e,0x00]
78 lda [%l0] (0xef+0x01), %f29
80 ! V8: error: instruction requires a CPU feature not currently enabled
81 ! V8-NEXT: ldda [%l0] 0xf0, %f48
82 ! V9: ldda [%l0] 240, %f48 ! encoding: [0xe3,0x9c,0x1e,0x00]
83 ldda [%l0] 0xf0, %f48
84 ! V8: error: instruction requires a CPU feature not currently enabled
85 ! V8-NEXT: ldda [%l0] (0xef+0x01), %f48
86 ! V9: ldda [%l0] 240, %f48 ! encoding: [0xe3,0x9c,0x1e,0x00]
87 ldda [%l0] (0xef+0x01), %f48
89 ! V8: error: instruction requires a CPU feature not currently enabled
90 ! V8-NEXT: ldqa [%l0] 0xf0, %f48
91 ! V9: ldqa [%l0] 240, %f48 ! encoding: [0xe3,0x94,0x1e,0x00]
92 ldqa [%l0] 0xf0, %f48
93 ! V8: error: instruction requires a CPU feature not currently enabled
94 ! V8-NEXT: ldqa [%l0] (0xef+0x01), %f48
95 ! V9: ldqa [%l0] 240, %f48 ! encoding: [0xe3,0x94,0x1e,0x00]
96 ldqa [%l0] (0xef+0x01), %f48
97 ! V8: error: instruction requires a CPU feature not currently enabled
98 ! V8-NEXT: ldq [%l0], %f48
99 ! V9: ldq [%l0], %f48 ! encoding: [0xe3,0x14,0x00,0x00]
100 ldq [%l0], %f48
103 ! V8: error: instruction requires a CPU feature not currently enabled
104 ! V8-NEXT: sta %f29, [%l0] 0xf0
105 ! V9: sta %f29, [%l0] 240 ! encoding: [0xfb,0xa4,0x1e,0x00]
106 sta %f29, [%l0] 0xf0
107 ! V8: error: instruction requires a CPU feature not currently enabled
108 ! V8-NEXT: sta %f29, [%l0] (0xef+0x01)
109 ! V9: sta %f29, [%l0] 240 ! encoding: [0xfb,0xa4,0x1e,0x00]
110 sta %f29, [%l0] (0xef+0x01)
112 ! V8: error: instruction requires a CPU feature not currently enabled
113 ! V8-NEXT: stda %f48, [%l0] 0xf0
114 ! V9: stda %f48, [%l0] 240 ! encoding: [0xe3,0xbc,0x1e,0x00]
115 stda %f48, [%l0] 0xf0
116 ! V8: error: instruction requires a CPU feature not currently enabled
117 ! V8-NEXT: stda %f48, [%l0] (0xef+0x01)
118 ! V9: stda %f48, [%l0] 240 ! encoding: [0xe3,0xbc,0x1e,0x00]
119 stda %f48, [%l0] (0xef+0x01)
121 ! V8: error: instruction requires a CPU feature not currently enabled
122 ! V8-NEXT: stqa %f48, [%l0] 0xf0
123 ! V9: stqa %f48, [%l0] 240 ! encoding: [0xe3,0xb4,0x1e,0x00]
124 stqa %f48, [%l0] 0xf0
125 ! V8: error: instruction requires a CPU feature not currently enabled
126 ! V8-NEXT: stqa %f48, [%l0] (0xef+0x01)
127 ! V9: stqa %f48, [%l0] 240 ! encoding: [0xe3,0xb4,0x1e,0x00]
128 stqa %f48, [%l0] (0xef+0x01)
129 ! V8: error: instruction requires a CPU feature not currently enabled
130 ! V8-NEXT: stq %f48, [%l0]
131 ! V9: stq %f48, [%l0] ! encoding: [0xe3,0x34,0x00,0x00]
132 stq %f48, [%l0]
134 ! V8: error: instruction requires a CPU feature not currently enabled
135 ! V8-NEXT: ldx [%g2 + 20],%fsr
136 ! V9: ldx [%g2+20], %fsr ! encoding: [0xc3,0x08,0xa0,0x14]
137 ldx [%g2 + 20],%fsr
139 ! V8: error: instruction requires a CPU feature not currently enabled
140 ! V8-NEXT: ldx [%g2 + %i5],%fsr
141 ! V9: ldx [%g2+%i5], %fsr ! encoding: [0xc3,0x08,0x80,0x1d]
142 ldx [%g2 + %i5],%fsr
144 ! V9: ldxa [%g2+%i5] #ASI_SNF, %g0 ! encoding: [0xc0,0xd8,0x90,0x7d]
145 ldxa [%g2 + %i5] 131, %g0
146 ! V9: ldxa [%g2+%i5] #ASI_SNF, %g0 ! encoding: [0xc0,0xd8,0x90,0x7d]
147 ldxa [%g2 + %i5] (130+1), %g0
149 ! V8: error: instruction requires a CPU feature not currently enabled
150 ! V8-NEXT: stx %fsr,[%g2 + 20]
151 ! V9: stx %fsr, [%g2+20] ! encoding: [0xc3,0x28,0xa0,0x14]
152 stx %fsr,[%g2 + 20]
154 ! V8: error: instruction requires a CPU feature not currently enabled
155 ! V8-NEXT: stx %fsr,[%g2 + %i5]
156 ! V9: stx %fsr, [%g2+%i5] ! encoding: [0xc3,0x28,0x80,0x1d]
157 stx %fsr,[%g2 + %i5]
159 ! V9: stxa %g0, [%g2+%i5] #ASI_SNF ! encoding: [0xc0,0xf0,0x90,0x7d]
160 stxa %g0, [%g2 + %i5] 131
161 ! V9: stxa %g0, [%g2+%i5] #ASI_SNF ! encoding: [0xc0,0xf0,0x90,0x7d]
162 stxa %g0, [%g2 + %i5] (130+1)
164 ! V8: error: instruction requires a CPU feature not currently enabled
165 ! V8-NEXT: wrpr %g6,%i6,%tpc
166 ! V9: wrpr %g6, %fp, %tpc ! encoding: [0x81,0x91,0x80,0x1e]
167 wrpr %g6,%i6,%tpc
168 ! V8: error: instruction requires a CPU feature not currently enabled
169 ! V8-NEXT: wrpr %g6,%i6,%tnpc
170 ! V9: wrpr %g6, %fp, %tnpc ! encoding: [0x83,0x91,0x80,0x1e]
171 wrpr %g6,%i6,%tnpc
172 ! V8: error: instruction requires a CPU feature not currently enabled
173 ! V8-NEXT: wrpr %g6,%i6,%tstate
174 ! V9: wrpr %g6, %fp, %tstate ! encoding: [0x85,0x91,0x80,0x1e]
175 wrpr %g6,%i6,%tstate
176 ! V8: error: instruction requires a CPU feature not currently enabled
177 ! V8-NEXT: wrpr %g6,%i6,%tt
178 ! V9: wrpr %g6, %fp, %tt ! encoding: [0x87,0x91,0x80,0x1e]
179 wrpr %g6,%i6,%tt
180 ! V8: error: instruction requires a CPU feature not currently enabled
181 ! V8-NEXT: wrpr %g6,%i6,%tick
182 ! V9: wrpr %g6, %fp, %tick ! encoding: [0x89,0x91,0x80,0x1e]
183 wrpr %g6,%i6,%tick
184 ! V8: error: instruction requires a CPU feature not currently enabled
185 ! V8-NEXT: wrpr %g6,%i6,%tba
186 ! V9: wrpr %g6, %fp, %tba ! encoding: [0x8b,0x91,0x80,0x1e]
187 wrpr %g6,%i6,%tba
188 ! V8: error: instruction requires a CPU feature not currently enabled
189 ! V8-NEXT: wrpr %g6,%i6,%pstate
190 ! V9: wrpr %g6, %fp, %pstate ! encoding: [0x8d,0x91,0x80,0x1e]
191 wrpr %g6,%i6,%pstate
192 ! V8: error: instruction requires a CPU feature not currently enabled
193 ! V8-NEXT: wrpr %g6,%i6,%tl
194 ! V9: wrpr %g6, %fp, %tl ! encoding: [0x8f,0x91,0x80,0x1e]
195 wrpr %g6,%i6,%tl
196 ! V8: error: instruction requires a CPU feature not currently enabled
197 ! V8-NEXT: wrpr %g6,%i6,%pil
198 ! V9: wrpr %g6, %fp, %pil ! encoding: [0x91,0x91,0x80,0x1e]
199 wrpr %g6,%i6,%pil
200 ! V8: error: instruction requires a CPU feature not currently enabled
201 ! V8-NEXT: wrpr %g6,%i6,%cwp
202 ! V9: wrpr %g6, %fp, %cwp ! encoding: [0x93,0x91,0x80,0x1e]
203 wrpr %g6,%i6,%cwp
204 ! V8: error: instruction requires a CPU feature not currently enabled
205 ! V8-NEXT: wrpr %g6,%i6,%cansave
206 ! V9: wrpr %g6, %fp, %cansave ! encoding: [0x95,0x91,0x80,0x1e]
207 wrpr %g6,%i6,%cansave
208 ! V8: error: instruction requires a CPU feature not currently enabled
209 ! V8-NEXT: wrpr %g6,%i6,%canrestore
210 ! V9: wrpr %g6, %fp, %canrestore ! encoding: [0x97,0x91,0x80,0x1e]
211 wrpr %g6,%i6,%canrestore
212 ! V8: error: instruction requires a CPU feature not currently enabled
213 ! V8-NEXT: wrpr %g6,%i6,%cleanwin
214 ! V9: wrpr %g6, %fp, %cleanwin ! encoding: [0x99,0x91,0x80,0x1e]
215 wrpr %g6,%i6,%cleanwin
216 ! V8: error: instruction requires a CPU feature not currently enabled
217 ! V8-NEXT: wrpr %g6,%i6,%otherwin
218 ! V9: wrpr %g6, %fp, %otherwin ! encoding: [0x9b,0x91,0x80,0x1e]
219 wrpr %g6,%i6,%otherwin
220 ! V8: error: instruction requires a CPU feature not currently enabled
221 ! V8-NEXT: wrpr %g6,%i6,%wstate
222 ! V9: wrpr %g6, %fp, %wstate ! encoding: [0x9d,0x91,0x80,0x1e]
223 wrpr %g6,%i6,%wstate
225 ! V8: error: instruction requires a CPU feature not currently enabled
226 ! V8-NEXT: wrpr %g6,255,%tpc
227 ! V9: wrpr %g6, 255, %tpc ! encoding: [0x81,0x91,0xa0,0xff]
228 wrpr %g6,255,%tpc
229 ! V8: error: instruction requires a CPU feature not currently enabled
230 ! V8-NEXT: wrpr %g6,255,%tnpc
231 ! V9: wrpr %g6, 255, %tnpc ! encoding: [0x83,0x91,0xa0,0xff]
232 wrpr %g6,255,%tnpc
233 ! V8: error: instruction requires a CPU feature not currently enabled
234 ! V8-NEXT: wrpr %g6,255,%tstate
235 ! V9: wrpr %g6, 255, %tstate ! encoding: [0x85,0x91,0xa0,0xff]
236 wrpr %g6,255,%tstate
237 ! V8: error: instruction requires a CPU feature not currently enabled
238 ! V8-NEXT: wrpr %g6,255,%tt
239 ! V9: wrpr %g6, 255, %tt ! encoding: [0x87,0x91,0xa0,0xff]
240 wrpr %g6,255,%tt
241 ! V8: error: instruction requires a CPU feature not currently enabled
242 ! V8-NEXT: wrpr %g6,255,%tick
243 ! V9: wrpr %g6, 255, %tick ! encoding: [0x89,0x91,0xa0,0xff]
244 wrpr %g6,255,%tick
245 ! V8: error: instruction requires a CPU feature not currently enabled
246 ! V8-NEXT: wrpr %g6,255,%tba
247 ! V9: wrpr %g6, 255, %tba ! encoding: [0x8b,0x91,0xa0,0xff]
248 wrpr %g6,255,%tba
249 ! V8: error: instruction requires a CPU feature not currently enabled
250 ! V8-NEXT: wrpr %g6,255,%pstate
251 ! V9: wrpr %g6, 255, %pstate ! encoding: [0x8d,0x91,0xa0,0xff]
252 wrpr %g6,255,%pstate
253 ! V8: error: instruction requires a CPU feature not currently enabled
254 ! V8-NEXT: wrpr %g6,255,%tl
255 ! V9: wrpr %g6, 255, %tl ! encoding: [0x8f,0x91,0xa0,0xff]
256 wrpr %g6,255,%tl
257 ! V8: error: instruction requires a CPU feature not currently enabled
258 ! V8-NEXT: wrpr %g6,255,%pil
259 ! V9: wrpr %g6, 255, %pil ! encoding: [0x91,0x91,0xa0,0xff]
260 wrpr %g6,255,%pil
261 ! V8: error: instruction requires a CPU feature not currently enabled
262 ! V8-NEXT: wrpr %g6,255,%cwp
263 ! V9: wrpr %g6, 255, %cwp ! encoding: [0x93,0x91,0xa0,0xff]
264 wrpr %g6,255,%cwp
265 ! V8: error: instruction requires a CPU feature not currently enabled
266 ! V8-NEXT: wrpr %g6,255,%cansave
267 ! V9: wrpr %g6, 255, %cansave ! encoding: [0x95,0x91,0xa0,0xff]
268 wrpr %g6,255,%cansave
269 ! V8: error: instruction requires a CPU feature not currently enabled
270 ! V8-NEXT: wrpr %g6,255,%canrestore
271 ! V9: wrpr %g6, 255, %canrestore ! encoding: [0x97,0x91,0xa0,0xff]
272 wrpr %g6,255,%canrestore
273 ! V8: error: instruction requires a CPU feature not currently enabled
274 ! V8-NEXT: wrpr %g6,255,%cleanwin
275 ! V9: wrpr %g6, 255, %cleanwin ! encoding: [0x99,0x91,0xa0,0xff]
276 wrpr %g6,255,%cleanwin
277 ! V8: error: instruction requires a CPU feature not currently enabled
278 ! V8-NEXT: wrpr %g6,255,%otherwin
279 ! V9: wrpr %g6, 255, %otherwin ! encoding: [0x9b,0x91,0xa0,0xff]
280 wrpr %g6,255,%otherwin
281 ! V8: error: instruction requires a CPU feature not currently enabled
282 ! V8-NEXT: wrpr %g6,255,%wstate
283 ! V9: wrpr %g6, 255, %wstate ! encoding: [0x9d,0x91,0xa0,0xff]
284 wrpr %g6,255,%wstate
286 ! V8: error: instruction requires a CPU feature not currently enabled
287 ! V8-NEXT: wrpr %i6,%tpc
288 ! V9: wrpr %fp, %g0, %tpc ! encoding: [0x81,0x97,0x80,0x00]
289 wrpr %i6,%tpc
290 ! V8: error: instruction requires a CPU feature not currently enabled
291 ! V8-NEXT: wrpr %i6,%tnpc
292 ! V9: wrpr %fp, %g0, %tnpc ! encoding: [0x83,0x97,0x80,0x00]
293 wrpr %i6,%tnpc
294 ! V8: error: instruction requires a CPU feature not currently enabled
295 ! V8-NEXT: wrpr %i6,%tstate
296 ! V9: wrpr %fp, %g0, %tstate ! encoding: [0x85,0x97,0x80,0x00]
297 wrpr %i6,%tstate
298 ! V8: error: instruction requires a CPU feature not currently enabled
299 ! V8-NEXT: wrpr %i6,%tt
300 ! V9: wrpr %fp, %g0, %tt ! encoding: [0x87,0x97,0x80,0x00]
301 wrpr %i6,%tt
302 ! V8: error: instruction requires a CPU feature not currently enabled
303 ! V8-NEXT: wrpr %i6,%tick
304 ! V9: wrpr %fp, %g0, %tick ! encoding: [0x89,0x97,0x80,0x00]
305 wrpr %i6,%tick
306 ! V8: error: instruction requires a CPU feature not currently enabled
307 ! V8-NEXT: wrpr %i6,%tba
308 ! V9: wrpr %fp, %g0, %tba ! encoding: [0x8b,0x97,0x80,0x00]
309 wrpr %i6,%tba
310 ! V8: error: instruction requires a CPU feature not currently enabled
311 ! V8-NEXT: wrpr %i6,%pstate
312 ! V9: wrpr %fp, %g0, %pstate ! encoding: [0x8d,0x97,0x80,0x00]
313 wrpr %i6,%pstate
314 ! V8: error: instruction requires a CPU feature not currently enabled
315 ! V8-NEXT: wrpr %i6,%tl
316 ! V9: wrpr %fp, %g0, %tl ! encoding: [0x8f,0x97,0x80,0x00]
317 wrpr %i6,%tl
318 ! V8: error: instruction requires a CPU feature not currently enabled
319 ! V8-NEXT: wrpr %i6,%pil
320 ! V9: wrpr %fp, %g0, %pil ! encoding: [0x91,0x97,0x80,0x00]
321 wrpr %i6,%pil
322 ! V8: error: instruction requires a CPU feature not currently enabled
323 ! V8-NEXT: wrpr %i6,%cwp
324 ! V9: wrpr %fp, %g0, %cwp ! encoding: [0x93,0x97,0x80,0x00]
325 wrpr %i6,%cwp
326 ! V8: error: instruction requires a CPU feature not currently enabled
327 ! V8-NEXT: wrpr %i6,%cansave
328 ! V9: wrpr %fp, %g0, %cansave ! encoding: [0x95,0x97,0x80,0x00]
329 wrpr %i6,%cansave
330 ! V8: error: instruction requires a CPU feature not currently enabled
331 ! V8-NEXT: wrpr %i6,%canrestore
332 ! V9: wrpr %fp, %g0, %canrestore ! encoding: [0x97,0x97,0x80,0x00]
333 wrpr %i6,%canrestore
334 ! V8: error: instruction requires a CPU feature not currently enabled
335 ! V8-NEXT: wrpr %i6,%cleanwin
336 ! V9: wrpr %fp, %g0, %cleanwin ! encoding: [0x99,0x97,0x80,0x00]
337 wrpr %i6,%cleanwin
338 ! V8: error: instruction requires a CPU feature not currently enabled
339 ! V8-NEXT: wrpr %i6,%otherwin
340 ! V9: wrpr %fp, %g0, %otherwin ! encoding: [0x9b,0x97,0x80,0x00]
341 wrpr %i6,%otherwin
342 ! V8: error: instruction requires a CPU feature not currently enabled
343 ! V8-NEXT: wrpr %i6,%wstate
344 ! V9: wrpr %fp, %g0, %wstate ! encoding: [0x9d,0x97,0x80,0x00]
345 wrpr %i6,%wstate
347 ! V8: error: instruction requires a CPU feature not currently enabled
348 ! V8-NEXT: wrpr 255,%tpc
349 ! V9: wrpr %g0, 255, %tpc ! encoding: [0x81,0x90,0x20,0xff]
350 wrpr 255,%tpc
351 ! V8: error: instruction requires a CPU feature not currently enabled
352 ! V8-NEXT: wrpr 255,%tnpc
353 ! V9: wrpr %g0, 255, %tnpc ! encoding: [0x83,0x90,0x20,0xff]
354 wrpr 255,%tnpc
355 ! V8: error: instruction requires a CPU feature not currently enabled
356 ! V8-NEXT: wrpr 255,%tstate
357 ! V9: wrpr %g0, 255, %tstate ! encoding: [0x85,0x90,0x20,0xff]
358 wrpr 255,%tstate
359 ! V8: error: instruction requires a CPU feature not currently enabled
360 ! V8-NEXT: wrpr 255,%tt
361 ! V9: wrpr %g0, 255, %tt ! encoding: [0x87,0x90,0x20,0xff]
362 wrpr 255,%tt
363 ! V8: error: instruction requires a CPU feature not currently enabled
364 ! V8-NEXT: wrpr 255,%tick
365 ! V9: wrpr %g0, 255, %tick ! encoding: [0x89,0x90,0x20,0xff]
366 wrpr 255,%tick
367 ! V8: error: instruction requires a CPU feature not currently enabled
368 ! V8-NEXT: wrpr 255,%tba
369 ! V9: wrpr %g0, 255, %tba ! encoding: [0x8b,0x90,0x20,0xff]
370 wrpr 255,%tba
371 ! V8: error: instruction requires a CPU feature not currently enabled
372 ! V8-NEXT: wrpr 255,%pstate
373 ! V9: wrpr %g0, 255, %pstate ! encoding: [0x8d,0x90,0x20,0xff]
374 wrpr 255,%pstate
375 ! V8: error: instruction requires a CPU feature not currently enabled
376 ! V8-NEXT: wrpr 255,%tl
377 ! V9: wrpr %g0, 255, %tl ! encoding: [0x8f,0x90,0x20,0xff]
378 wrpr 255,%tl
379 ! V8: error: instruction requires a CPU feature not currently enabled
380 ! V8-NEXT: wrpr 255,%pil
381 ! V9: wrpr %g0, 255, %pil ! encoding: [0x91,0x90,0x20,0xff]
382 wrpr 255,%pil
383 ! V8: error: instruction requires a CPU feature not currently enabled
384 ! V8-NEXT: wrpr 255,%cwp
385 ! V9: wrpr %g0, 255, %cwp ! encoding: [0x93,0x90,0x20,0xff]
386 wrpr 255,%cwp
387 ! V8: error: instruction requires a CPU feature not currently enabled
388 ! V8-NEXT: wrpr 255,%cansave
389 ! V9: wrpr %g0, 255, %cansave ! encoding: [0x95,0x90,0x20,0xff]
390 wrpr 255,%cansave
391 ! V8: error: instruction requires a CPU feature not currently enabled
392 ! V8-NEXT: wrpr 255,%canrestore
393 ! V9: wrpr %g0, 255, %canrestore ! encoding: [0x97,0x90,0x20,0xff]
394 wrpr 255,%canrestore
395 ! V8: error: instruction requires a CPU feature not currently enabled
396 ! V8-NEXT: wrpr 255,%cleanwin
397 ! V9: wrpr %g0, 255, %cleanwin ! encoding: [0x99,0x90,0x20,0xff]
398 wrpr 255,%cleanwin
399 ! V8: error: instruction requires a CPU feature not currently enabled
400 ! V8-NEXT: wrpr 255,%otherwin
401 ! V9: wrpr %g0, 255, %otherwin ! encoding: [0x9b,0x90,0x20,0xff]
402 wrpr 255,%otherwin
403 ! V8: error: instruction requires a CPU feature not currently enabled
404 ! V8-NEXT: wrpr 255,%wstate
405 ! V9: wrpr %g0, 255, %wstate ! encoding: [0x9d,0x90,0x20,0xff]
406 wrpr 255,%wstate
408 ! V8: error: instruction requires a CPU feature not currently enabled
409 ! V8-NEXT: rdpr %tpc,%i5
410 ! V9: rdpr %tpc, %i5 ! encoding: [0xbb,0x50,0x00,0x00]
411 rdpr %tpc,%i5
412 ! V8: error: instruction requires a CPU feature not currently enabled
413 ! V8-NEXT: rdpr %tnpc,%i5
414 ! V9: rdpr %tnpc, %i5 ! encoding: [0xbb,0x50,0x40,0x00]
415 rdpr %tnpc,%i5
416 ! V8: error: instruction requires a CPU feature not currently enabled
417 ! V8-NEXT: rdpr %tstate,%i5
418 ! V9: rdpr %tstate, %i5 ! encoding: [0xbb,0x50,0x80,0x00]
419 rdpr %tstate,%i5
420 ! V8: error: instruction requires a CPU feature not currently enabled
421 ! V8-NEXT: rdpr %tt,%i5
422 ! V9: rdpr %tt, %i5 ! encoding: [0xbb,0x50,0xc0,0x00]
423 rdpr %tt,%i5
424 ! V8: error: instruction requires a CPU feature not currently enabled
425 ! V8-NEXT: rdpr %tick,%i5
426 ! V9: rdpr %tick, %i5 ! encoding: [0xbb,0x51,0x00,0x00]
427 rdpr %tick,%i5
428 ! V8: error: instruction requires a CPU feature not currently enabled
429 ! V8-NEXT: rdpr %tba,%i5
430 ! V9: rdpr %tba, %i5 ! encoding: [0xbb,0x51,0x40,0x00]
431 rdpr %tba,%i5
432 ! V8: error: instruction requires a CPU feature not currently enabled
433 ! V8-NEXT: rdpr %pstate,%i5
434 ! V9: rdpr %pstate, %i5 ! encoding: [0xbb,0x51,0x80,0x00]
435 rdpr %pstate,%i5
436 ! V8: error: instruction requires a CPU feature not currently enabled
437 ! V8-NEXT: rdpr %tl,%i5
438 ! V9: rdpr %tl, %i5 ! encoding: [0xbb,0x51,0xc0,0x00]
439 rdpr %tl,%i5
440 ! V8: error: instruction requires a CPU feature not currently enabled
441 ! V8-NEXT: rdpr %pil,%i5
442 ! V9: rdpr %pil, %i5 ! encoding: [0xbb,0x52,0x00,0x00]
443 rdpr %pil,%i5
444 ! V8: error: instruction requires a CPU feature not currently enabled
445 ! V8-NEXT: rdpr %cwp,%i5
446 ! V9: rdpr %cwp, %i5 ! encoding: [0xbb,0x52,0x40,0x00]
447 rdpr %cwp,%i5
448 ! V8: error: instruction requires a CPU feature not currently enabled
449 ! V8-NEXT: rdpr %cansave,%i5
450 ! V9: rdpr %cansave, %i5 ! encoding: [0xbb,0x52,0x80,0x00]
451 rdpr %cansave,%i5
452 ! V8: error: instruction requires a CPU feature not currently enabled
453 ! V8-NEXT: rdpr %canrestore,%i5
454 ! V9: rdpr %canrestore, %i5 ! encoding: [0xbb,0x52,0xc0,0x00]
455 rdpr %canrestore,%i5
456 ! V8: error: instruction requires a CPU feature not currently enabled
457 ! V8-NEXT: rdpr %cleanwin,%i5
458 ! V9: rdpr %cleanwin, %i5 ! encoding: [0xbb,0x53,0x00,0x00]
459 rdpr %cleanwin,%i5
460 ! V8: error: instruction requires a CPU feature not currently enabled
461 ! V8-NEXT: rdpr %otherwin,%i5
462 ! V9: rdpr %otherwin, %i5 ! encoding: [0xbb,0x53,0x40,0x00]
463 rdpr %otherwin,%i5
464 ! V8: error: instruction requires a CPU feature not currently enabled
465 ! V8-NEXT: rdpr %wstate,%i5
466 ! V9: rdpr %wstate, %i5 ! encoding: [0xbb,0x53,0x80,0x00]
467 rdpr %wstate,%i5
469 ! V8: error: instruction requires a CPU feature not currently enabled
470 ! V8-NEXT: rdpr %fq,%i5
471 ! V9: rdpr %fq, %i5 ! encoding: [0xbb,0x53,0xc0,0x00]
472 rdpr %fq,%i5
473 ! V8: error: instruction requires a CPU feature not currently enabled
474 ! V8-NEXT: rdpr %ver,%i5
475 ! V9: rdpr %ver, %i5 ! encoding: [0xbb,0x57,0xc0,0x00]
476 rdpr %ver,%i5
478 ! V9: rd %pc, %o7 ! encoding: [0x9f,0x41,0x40,0x00]
479 rd %pc, %o7
480 ! V9: rd %asi, %g1 ! encoding: [0x83,0x40,0xc0,0x00]
481 rd %asi, %g1
482 ! V9: rd %ccr, %g1 ! encoding: [0x83,0x40,0x80,0x00]
483 rd %ccr, %g1
484 ! V9: rd %tick, %i5 ! encoding: [0xbb,0x41,0x00,0x00]
485 rd %tick,%i5
487 ! V9: wr %i0, %i1, %asi ! encoding: [0x87,0x86,0x00,0x19]
488 wr %i0, %i1, %asi
489 ! V9: wr %i0, 1, %asi ! encoding: [0x87,0x86,0x20,0x01]
490 wr %i0, 1, %asi
491 ! V9: wr %i0, %i1, %ccr ! encoding: [0x85,0x86,0x00,0x19]
492 wr %i0, %i1, %ccr
493 ! V9: wr %i0, 1, %ccr ! encoding: [0x85,0x86,0x20,0x01]
494 wr %i0, 1, %ccr
496 ! V9: st %o1, [%o0] ! encoding: [0xd2,0x22,0x00,0x00]
497 stw %o1, [%o0]
498 ! V9: st %o1, [%o0] ! encoding: [0xd2,0x22,0x00,0x00]
499 stuw %o1, [%o0]
500 ! V9: st %o1, [%o0] ! encoding: [0xd2,0x22,0x00,0x00]
501 stsw %o1, [%o0]
503 ! V9: sta %o2, [%i0+%l6] #ASI_SNF ! encoding: [0xd4,0xa6,0x10,0x76]
504 stwa %o2, [%i0 + %l6] 131
505 ! V9: sta %o2, [%i0+%l6] #ASI_SNF ! encoding: [0xd4,0xa6,0x10,0x76]
506 stuwa %o2, [%i0 + %l6] 131
507 ! V9: sta %o2, [%i0+%l6] #ASI_SNF ! encoding: [0xd4,0xa6,0x10,0x76]
508 stswa %o2, [%i0 + %l6] 131
510 !! SPARCv9 provides a new variant of ASI-tagged memory accesses.
511 ! V9: ldxa [%g2] %asi, %g0 ! encoding: [0xc0,0xd8,0xa0,0x00]
512 ldxa [%g2] %asi, %g0
513 ! V9: stxa %g0, [%g2] %asi ! encoding: [0xc0,0xf0,0xa0,0x00]
514 stxa %g0, [%g2] %asi
515 ! V9: ldxa [%g2+5] %asi, %g0 ! encoding: [0xc0,0xd8,0xa0,0x05]
516 ldxa [%g2 + 5] %asi, %g0
517 ! V9: stxa %g0, [%g2+5] %asi ! encoding: [0xc0,0xf0,0xa0,0x05]
518 stxa %g0, [%g2 + 5] %asi
520 !! Also make sure named ASI tags are parsed properly.
521 ! V9: ldxa [%g2+%i5] #ASI_SNF, %g0 ! encoding: [0xc0,0xd8,0x90,0x7d]
522 ldxa [%g2 + %i5] #ASI_SNF, %g0
523 ! V9: stxa %g0, [%g2+%i5] #ASI_SNF ! encoding: [0xc0,0xf0,0x90,0x7d]
524 stxa %g0, [%g2 + %i5] #ASI_SNF
526 ! V8: error: instruction requires a CPU feature not currently enabled
527 ! V8-NEXT: prefetch [ %i1 + 0xf80 ], 1
528 ! V9: prefetch [%i1+3968], 1 ! encoding: [0xc3,0x6e,0x6f,0x80]
529 prefetch [ %i1 + 0xf80 ], 1
531 ! V8: error: instruction requires a CPU feature not currently enabled
532 ! V8-NEXT: prefetch [ %i1 + %i2 ], 1
533 ! V9: prefetch [%i1+%i2], 1 ! encoding: [0xc3,0x6e,0x40,0x1a]
534 prefetch [ %i1 + %i2 ], 1
536 ! V8: error: instruction requires a CPU feature not currently enabled
537 ! V8-NEXT: done
538 ! V9: done ! encoding: [0x81,0xf0,0x00,0x00]
539 done
540 ! V8: error: instruction requires a CPU feature not currently enabled
541 ! V8-NEXT: retry
542 ! V9: retry ! encoding: [0x83,0xf0,0x00,0x00]
543 retry
544 ! V8: error: instruction requires a CPU feature not currently enabled
545 ! V8-NEXT: saved
546 ! V9: saved ! encoding: [0x81,0x88,0x00,0x00]
547 saved
548 ! V8: error: instruction requires a CPU feature not currently enabled
549 ! V8-NEXT: restored
550 ! V9: restored ! encoding: [0x83,0x88,0x00,0x00]
551 restored