Skip to content

Commit f7988dc

Browse files
committed
Tests for gfx11 and gfx12.
1 parent 76e4eb6 commit f7988dc

File tree

3 files changed

+762
-56
lines changed

3 files changed

+762
-56
lines changed

llvm/test/MC/Disassembler/AMDGPU/gfx10_vop3cx_warn.txt

Lines changed: 52 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -183,225 +183,221 @@
183183

184184
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
185185
# v_cmpx_le_u16_e64 s1, v2 ; encoding: [0x7e,0x00,0xbb,0xd4,0x01,0x04,0x02,0x00]
186-
0x2e,0x00,0xbb,0xd4,0x01,0x04,0x02,0x00
186+
0x2c,0x00,0xbb,0xd4,0x01,0x04,0x02,0x00
187187

188188
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
189189
# v_cmpx_le_u32_e64 s1, v2 ; encoding: [0x7e,0x00,0xd3,0xd4,0x01,0x04,0x02,0x00]
190-
0x2f,0x00,0xd3,0xd4,0x01,0x04,0x02,0x00
190+
0x2d,0x00,0xd3,0xd4,0x01,0x04,0x02,0x00
191191

192192
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
193193
# v_cmpx_le_u64_e64 s[2:3], v[2:3] ; encoding: [0x7e,0x00,0xf3,0xd4,0x02,0x04,0x02,0x00]
194-
0x30,0x00,0xf3,0xd4,0x02,0x04,0x02,0x00
194+
0x2e,0x00,0xf3,0xd4,0x02,0x04,0x02,0x00
195195

196196
### lg
197197
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
198198
# v_cmpx_lg_f16_e64 -4.0, v2 ; encoding: [0x7e,0x00,0xdd,0xd4,0xf7,0x04,0x02,0x00]
199-
0x31,0x00,0xdd,0xd4,0xf7,0x04,0x02,0x00
199+
0x2f,0x00,0xdd,0xd4,0xf7,0x04,0x02,0x00
200200

201201
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
202202
# v_cmpx_lg_f32_e64 -4.0, v2 ; encoding: [0x7e,0x00,0x15,0xd4,0xf7,0x04,0x02,0x00]
203-
0x32,0x00,0x15,0xd4,0xf7,0x04,0x02,0x00
203+
0x30,0x00,0x15,0xd4,0xf7,0x04,0x02,0x00
204204

205205
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
206206
# v_cmpx_lg_f64_e64 -4.0, v[2:3] ; encoding: [0x7e,0x00,0x35,0xd4,0xf7,0x04,0x02,0x00]
207-
0x33,0x00,0x35,0xd4,0xf7,0x04,0x02,0x00
207+
0x31,0x00,0x35,0xd4,0xf7,0x04,0x02,0x00
208208

209209
### lt
210210
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
211211
# v_cmpx_lt_f16_e64 -4.0, v2 ; encoding: [0x7e,0x00,0xd9,0xd4,0xf7,0x04,0x02,0x00]
212-
0x34,0x00,0xd9,0xd4,0xf7,0x04,0x02,0x00
212+
0x32,0x00,0xd9,0xd4,0xf7,0x04,0x02,0x00
213213

214214
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
215215
# v_cmpx_lt_f32_e64 -4.0, v2 ; encoding: [0x7e,0x00,0x11,0xd4,0xf7,0x04,0x02,0x00]
216-
0x35,0x00,0x11,0xd4,0xf7,0x04,0x02,0x00
216+
0x33,0x00,0x11,0xd4,0xf7,0x04,0x02,0x00
217217

218218
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
219219
# v_cmpx_lt_f64_e64 -4.0, v[2:3] ; encoding: [0x7e,0x00,0x31,0xd4,0xf7,0x04,0x02,0x00]
220-
0x36,0x00,0x31,0xd4,0xf7,0x04,0x02,0x00
220+
0x34,0x00,0x31,0xd4,0xf7,0x04,0x02,0x00
221221

222222
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
223223
# v_cmpx_lt_i16_e64 -1, v2 ; encoding: [0x7e,0x00,0x99,0xd4,0xc1,0x04,0x02,0x00]
224-
0x37,0x00,0x99,0xd4,0xc1,0x04,0x02,0x00
224+
0x35,0x00,0x99,0xd4,0xc1,0x04,0x02,0x00
225225

226226
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
227227
# v_cmpx_lt_i32_e64 -1, v2 ; encoding: [0x7e,0x00,0x91,0xd4,0xc1,0x04,0x02,0x00]
228-
0x38,0x00,0x91,0xd4,0xc1,0x04,0x02,0x00
228+
0x36,0x00,0x91,0xd4,0xc1,0x04,0x02,0x00
229229

230230
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
231231
# v_cmpx_lt_i64_e64 -1, v[2:3] ; encoding: [0x7e,0x00,0xb1,0xd4,0xc1,0x04,0x02,0x00]
232-
0x39,0x00,0xb1,0xd4,0xc1,0x04,0x02,0x00
232+
0x37,0x00,0xb1,0xd4,0xc1,0x04,0x02,0x00
233233

234234
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
235235
# v_cmpx_lt_u16_e64 s1, v2 ; encoding: [0x7e,0x00,0xb9,0xd4,0x01,0x04,0x02,0x00]
236-
0x3a,0x00,0xb9,0xd4,0x01,0x04,0x02,0x00
236+
0x38,0x00,0xb9,0xd4,0x01,0x04,0x02,0x00
237237

238238
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
239239
# v_cmpx_lt_u32_e64 s1, v2 ; encoding: [0x7e,0x00,0xd1,0xd4,0x01,0x04,0x02,0x00]
240-
0x3b,0x00,0xd1,0xd4,0x01,0x04,0x02,0x00
240+
0x39,0x00,0xd1,0xd4,0x01,0x04,0x02,0x00
241241

242242
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
243243
# v_cmpx_lt_u64_e64 s[2:3], v[2:3] ; encoding: [0x7e,0x00,0xf1,0xd4,0x02,0x04,0x02,0x00]
244-
0x3c,0x00,0xf1,0xd4,0x02,0x04,0x02,0x00
244+
0x3a,0x00,0xf1,0xd4,0x02,0x04,0x02,0x00
245245

246246
### ne
247247
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
248248
# v_cmpx_ne_i16_e64 -1, v2 ; encoding: [0x7e,0x00,0x9d,0xd4,0xc1,0x04,0x02,0x00]
249-
0x3d,0x00,0x9d,0xd4,0xc1,0x04,0x02,0x00
249+
0x3b,0x00,0x9d,0xd4,0xc1,0x04,0x02,0x00
250250

251251
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
252252
# v_cmpx_ne_i32_e64 -1, v2 ; encoding: [0x7e,0x00,0x95,0xd4,0xc1,0x04,0x02,0x00]
253-
0x3e,0x00,0x95,0xd4,0xc1,0x04,0x02,0x00
253+
0x3c,0x00,0x95,0xd4,0xc1,0x04,0x02,0x00
254254

255255
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
256256
# v_cmpx_ne_i64_e64 -1, v[2:3] ; encoding: [0x7e,0x00,0xb5,0xd4,0xc1,0x04,0x02,0x00]
257-
0x3f,0x00,0xb5,0xd4,0xc1,0x04,0x02,0x00
257+
0x3d,0x00,0xb5,0xd4,0xc1,0x04,0x02,0x00
258258

259259
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
260260
# v_cmpx_ne_u16_e64 s1, v2 ; encoding: [0x7e,0x00,0xbd,0xd4,0x01,0x04,0x02,0x00]
261-
0x40,0x00,0xbd,0xd4,0x01,0x04,0x02,0x00
261+
0x3e,0x00,0xbd,0xd4,0x01,0x04,0x02,0x00
262262

263263
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
264264
# v_cmpx_ne_u32_e64 s1, v2 ; encoding: [0x7e,0x00,0xd5,0xd4,0x01,0x04,0x02,0x00]
265-
0x41,0x00,0xd5,0xd4,0x01,0x04,0x02,0x00
265+
0x3f,0x00,0xd5,0xd4,0x01,0x04,0x02,0x00
266266

267267
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
268268
# v_cmpx_ne_u64_e64 s[2:3], v[2:3] ; encoding: [0x7e,0x00,0xf5,0xd4,0x02,0x04,0x02,0x00]
269-
0x42,0x00,0xf5,0xd4,0x02,0x04,0x02,0x00
269+
0x40,0x00,0xf5,0xd4,0x02,0x04,0x02,0x00
270270

271271
### neq
272272
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
273273
# v_cmpx_neq_f16_e64 -4.0, v2 ; encoding: [0x7e,0x00,0xfd,0xd4,0xf7,0x04,0x02,0x00]
274-
0x43,0x00,0xfd,0xd4,0xf7,0x04,0x02,0x00
274+
0x41,0x00,0xfd,0xd4,0xf7,0x04,0x02,0x00
275275

276276
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
277277
# v_cmpx_neq_f32_e64 -4.0, v2 ; encoding: [0x7e,0x00,0x1d,0xd4,0xf7,0x04,0x02,0x00]
278-
0x44,0x00,0x1d,0xd4,0xf7,0x04,0x02,0x00
278+
0x42,0x00,0x1d,0xd4,0xf7,0x04,0x02,0x00
279279

280280
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
281281
# v_cmpx_neq_f64_e64 -4.0, v[2:3] ; encoding: [0x7e,0x00,0x3d,0xd4,0xf7,0x04,0x02,0x00]
282-
0x45,0x00,0x3d,0xd4,0xf7,0x04,0x02,0x00
282+
0x43,0x00,0x3d,0xd4,0xf7,0x04,0x02,0x00
283283

284284
### nge
285285
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
286286
# v_cmpx_nge_f16_e64 -4.0, v2 ; encoding: [0x7e,0x00,0xf9,0xd4,0xf7,0x04,0x02,0x00]
287-
0x46,0x00,0xf9,0xd4,0xf7,0x04,0x02,0x00
287+
0x44,0x00,0xf9,0xd4,0xf7,0x04,0x02,0x00
288288

289289
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
290290
# v_cmpx_nge_f32_e64 -4.0, v2 ; encoding: [0x7e,0x00,0x19,0xd4,0xf7,0x04,0x02,0x00]
291-
0x47,0x00,0x19,0xd4,0xf7,0x04,0x02,0x00
291+
0x45,0x00,0x19,0xd4,0xf7,0x04,0x02,0x00
292292

293293
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
294294
# v_cmpx_nge_f64_e64 -4.0, v[2:3] ; encoding: [0x7e,0x00,0x39,0xd4,0xf7,0x04,0x02,0x00]
295-
0x48,0x00,0x39,0xd4,0xf7,0x04,0x02,0x00
295+
0x46,0x00,0x39,0xd4,0xf7,0x04,0x02,0x00
296296

297297
### ngt
298298
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
299299
# v_cmpx_ngt_f16_e64 -4.0, v2 ; encoding: [0x7e,0x00,0xfb,0xd4,0xf7,0x04,0x02,0x00]
300-
0x49,0x00,0xfb,0xd4,0xf7,0x04,0x02,0x00
300+
0x47,0x00,0xfb,0xd4,0xf7,0x04,0x02,0x00
301301

302302
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
303303
# v_cmpx_ngt_f32_e64 -4.0, v2 ; encoding: [0x7e,0x00,0x1b,0xd4,0xf7,0x04,0x02,0x00]
304-
0x4a,0x00,0x1b,0xd4,0xf7,0x04,0x02,0x00
304+
0x48,0x00,0x1b,0xd4,0xf7,0x04,0x02,0x00
305305

306306
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
307307
# v_cmpx_ngt_f64_e64 -4.0, v[2:3] ; encoding: [0x7e,0x00,0x3b,0xd4,0xf7,0x04,0x02,0x00]
308-
0x4b,0x00,0x3b,0xd4,0xf7,0x04,0x02,0x00
308+
0x49,0x00,0x3b,0xd4,0xf7,0x04,0x02,0x00
309309

310310
### nle
311311
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
312312
# v_cmpx_nle_f16_e64 -1, v2 ; encoding: [0x7e,0x00,0xfc,0xd4,0xc1,0x04,0x02,0x00]
313-
0x4c,0x00,0xfc,0xd4,0xc1,0x04,0x02,0x00
313+
0x4a,0x00,0xfc,0xd4,0xc1,0x04,0x02,0x00
314314

315315
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
316316
# v_cmpx_nle_f32_e64 -1, v2 ; encoding: [0x7e,0x00,0x1c,0xd4,0xc1,0x04,0x02,0x00]
317-
0x4d,0x00,0x1c,0xd4,0xc1,0x04,0x02,0x00
317+
0x4b,0x00,0x1c,0xd4,0xc1,0x04,0x02,0x00
318318

319319
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
320320
# v_cmpx_nle_f64_e64 -1, v[2:3] ; encoding: [0x7e,0x00,0x3c,0xd4,0xc1,0x04,0x02,0x00]
321-
0x4e,0x00,0x3c,0xd4,0xc1,0x04,0x02,0x00
321+
0x4c,0x00,0x3c,0xd4,0xc1,0x04,0x02,0x00
322322

323323
### nlg
324324
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
325325
# v_cmpx_nlg_f16_e64 -1, v2 ; encoding: [0x7e,0x00,0xfa,0xd4,0xc1,0x04,0x02,0x00]
326-
0x4f,0x00,0xfa,0xd4,0xc1,0x04,0x02,0x00
326+
0x4d,0x00,0xfa,0xd4,0xc1,0x04,0x02,0x00
327327

328328
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
329329
# v_cmpx_nlg_f32_e64 -1, v2 ; encoding: [0x7e,0x00,0x1a,0xd4,0xc1,0x04,0x02,0x00]
330-
0x50,0x00,0x1a,0xd4,0xc1,0x04,0x02,0x00
330+
0x4e,0x00,0x1a,0xd4,0xc1,0x04,0x02,0x00
331331

332332
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
333333
# v_cmpx_nlg_f64_e64 -1, v[2:3] ; encoding: [0x7e,0x00,0x3a,0xd4,0xc1,0x04,0x02,0x00]
334-
0x51,0x00,0x3a,0xd4,0xc1,0x04,0x02,0x00
334+
0x4f,0x00,0x3a,0xd4,0xc1,0x04,0x02,0x00
335335

336336
### nlt
337337
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
338338
# v_cmpx_nlt_f16_e64 -1, v2 ; encoding: [0x7e,0x00,0xfe,0xd4,0xc1,0x04,0x02,0x00]
339-
0x52,0x00,0xfe,0xd4,0xc1,0x04,0x02,0x00
339+
0x50,0x00,0xfe,0xd4,0xc1,0x04,0x02,0x00
340340

341341
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
342342
# v_cmpx_nlt_f32_e64 -1, v2 ; encoding: [0x7e,0x00,0x1e,0xd4,0xc1,0x04,0x02,0x00]
343-
0x53,0x00,0x1e,0xd4,0xc1,0x04,0x02,0x00
343+
0x51,0x00,0x1e,0xd4,0xc1,0x04,0x02,0x00
344344

345345
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
346346
# v_cmpx_nlt_f64_e64 -1, v[2:3] ; encoding: [0x7e,0x00,0x3e,0xd4,0xc1,0x04,0x02,0x00]
347-
0x54,0x00,0x3e,0xd4,0xc1,0x04,0x02,0x00
347+
0x52,0x00,0x3e,0xd4,0xc1,0x04,0x02,0x00
348348

349349
### o_f
350350
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
351351
# v_cmpx_o_f16_e64 -4.0, v2 ; encoding: [0x7e,0x00,0xdf,0xd4,0xf7,0x04,0x02,0x00]
352-
0x55,0x00,0xdf,0xd4,0xf7,0x04,0x02,0x00
352+
0x53,0x00,0xdf,0xd4,0xf7,0x04,0x02,0x00
353353

354354
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
355355
# v_cmpx_o_f32_e64 -4.0, v2 ; encoding: [0x7e,0x00,0x17,0xd4,0xf7,0x04,0x02,0x00]
356-
0x56,0x00,0x17,0xd4,0xf7,0x04,0x02,0x00
356+
0x54,0x00,0x17,0xd4,0xf7,0x04,0x02,0x00
357357

358358
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
359359
# v_cmpx_o_f64_e64 -4.0, v[2:3] ; encoding: [0x7e,0x00,0x37,0xd4,0xf7,0x04,0x02,0x00]
360-
0x57,0x00,0x37,0xd4,0xf7,0x04,0x02,0x00
360+
0x55,0x00,0x37,0xd4,0xf7,0x04,0x02,0x00
361361

362362
### t_i
363-
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
364-
# v_cmpx_t_i32_e64 -1, v2 ; encoding: [0x7e,0x00,0x97,0xd4,0xc1,0x04,0x02,0x00]
365-
0x58,0x00,0x97,0xd4,0xc1,0x04,0x02,0x00
366-
367363
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
368364
# v_cmpx_t_i32_e64 -4.0, v2 ; encoding: [0x7e,0x00,0x97,0xd4,0xf7,0x04,0x02,0x00]
369-
0x59,0x00,0x97,0xd4,0xf7,0x04,0x02,0x00
365+
0x56,0x00,0x97,0xd4,0xf7,0x04,0x02,0x00
370366

371367
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
372368
# v_cmpx_t_i64_e64 -1, v[2:3] ; encoding: [0x7e,0x00,0xb7,0xd4,0xc1,0x04,0x02,0x00]
373-
0x5a,0x00,0xb7,0xd4,0xc1,0x04,0x02,0x00
369+
0x57,0x00,0xb7,0xd4,0xc1,0x04,0x02,0x00
374370

375371
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
376372
# v_cmpx_t_u32_e64 s1, v2 ; encoding: [0x7e,0x00,0xd7,0xd4,0x01,0x04,0x02,0x00]
377-
0x5b,0x00,0xd7,0xd4,0x01,0x04,0x02,0x00
373+
0x58,0x00,0xd7,0xd4,0x01,0x04,0x02,0x00
378374

379375
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
380376
# v_cmpx_t_u64_e64 s[2:3], v[2:3] ; encoding: [0x7e,0x00,0xf7,0xd4,0x02,0x04,0x02,0x00]
381-
0x5c,0x00,0xf7,0xd4,0x02,0x04,0x02,0x00
377+
0x59,0x00,0xf7,0xd4,0x02,0x04,0x02,0x00
382378

383379
### tru
384380
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
385381
# v_cmpx_tru_f16_e64 -1, v2 ; encoding: [0x7e,0x00,0xff,0xd4,0xc1,0x04,0x02,0x00]
386-
0x5d,0x00,0xff,0xd4,0xc1,0x04,0x02,0x00
382+
0x5a,0x00,0xff,0xd4,0xc1,0x04,0x02,0x00
387383

388384
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
389385
# v_cmpx_tru_f32_e64 -1, v2 ; encoding: [0x7e,0x00,0x1f,0xd4,0xc1,0x04,0x02,0x00]
390-
0x5e,0x00,0x1f,0xd4,0xc1,0x04,0x02,0x00
386+
0x5b,0x00,0x1f,0xd4,0xc1,0x04,0x02,0x00
391387

392388
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
393389
# v_cmpx_tru_f64_e64 -1, v[2:3] ; encoding: [0x7e,0x00,0x3f,0xd4,0xc1,0x04,0x02,0x00]
394-
0x5f,0x00,0x3f,0xd4,0xc1,0x04,0x02,0x00
390+
0x5c,0x00,0x3f,0xd4,0xc1,0x04,0x02,0x00
395391

396392
### u_f
397393
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
398394
# v_cmpx_u_f16_e64 -1, v2 ; encoding: [0x7e,0x00,0xf8,0xd4,0xc1,0x04,0x02,0x00]
399-
0x60,0x00,0xf8,0xd4,0xc1,0x04,0x02,0x00
395+
0x5d,0x00,0xf8,0xd4,0xc1,0x04,0x02,0x00
400396

401397
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
402398
# v_cmpx_u_f32_e64 -1, v2 ; encoding: [0x7e,0x00,0x18,0xd4,0xc1,0x04,0x02,0x00]
403-
0x61,0x00,0x18,0xd4,0xc1,0x04,0x02,0x00
399+
0x5e,0x00,0x18,0xd4,0xc1,0x04,0x02,0x00
404400

405401
# GFX10: [[@LINE+2]]:1: warning: potentially undefined instruction encoding
406402
# v_cmpx_u_f64_e64 -1, v[2:3] ; encoding: [0x7e,0x00,0x38,0xd4,0xc1,0x04,0x02,0x00]
407-
0x62,0x00,0x38,0xd4,0xc1,0x04,0x02,0x00
403+
0x5f,0x00,0x38,0xd4,0xc1,0x04,0x02,0x00

0 commit comments

Comments
 (0)