Skip to content

Commit 4ab704d

Browse files
[AMDGPU][MC] Add tfe disassembler support MIMG opcodes
With tfe on there can be a vgpr write to vdata+1. Add tablegen support for 5 register vdata store. This is required for 4 register vdata store with tfe. Differential Revision: https://reviews.llvm.org/D94960
1 parent 2aeaaf8 commit 4ab704d

File tree

6 files changed

+150
-31
lines changed

6 files changed

+150
-31
lines changed

llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,8 @@ DecodeStatus AMDGPUDisassembler::convertMIMGInst(MCInst &MI) const {
545545
DstSize = (DstSize + 1) / 2;
546546
}
547547

548-
// FIXME: Add tfe support
549548
if (MI.getOperand(TFEIdx).getImm())
550-
return MCDisassembler::Success;
549+
DstSize += 1;
551550

552551
if (DstSize == Info->VDataDwords && AddrSize == Info->VAddrDwords)
553552
return MCDisassembler::Success;

llvm/lib/Target/AMDGPU/MIMGInstructions.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ multiclass MIMG_Store <bits<8> op, string asm, bit has_d16, bit mip = 0> {
413413
defm _V3 : MIMG_Store_Addr_Helper <op, asm, VReg_96, 0>;
414414
let VDataDwords = 4 in
415415
defm _V4 : MIMG_Store_Addr_Helper <op, asm, VReg_128, 0>;
416+
let VDataDwords = 5 in
417+
defm _V5 : MIMG_Store_Addr_Helper <op, asm, VReg_160, 0>;
416418
}
417419
}
418420

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

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,54 @@
4343
# GFX10: image_load_mip_pck_sgn v[16:19], v[8:10], s[4:11] dmask:0xf dim:SQ_RSRC_IMG_2D unorm r128 ; encoding: [0x08,0x9f,0x14,0xf0,0x08,0x10,0x01,0x00]
4444
0x08,0x9f,0x14,0xf0,0x08,0x10,0x01,0x00
4545

46+
# GFX10: image_load v16, v[8:9], s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_2D ; encoding: [0x08,0x01,0x00,0xf0,0x08,0x10,0x18,0x00]
47+
0x08,0x01,0x00,0xf0,0x08,0x10,0x18,0x00
48+
49+
# GFX10: image_load v[16:17], v[8:9], s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_2D ; encoding: [0x08,0x03,0x00,0xf0,0x08,0x10,0x18,0x00]
50+
0x08,0x03,0x00,0xf0,0x08,0x10,0x18,0x00
51+
52+
# GFX10: image_load v[16:18], v[8:9], s[96:103] dmask:0x7 dim:SQ_RSRC_IMG_2D ; encoding: [0x08,0x07,0x00,0xf0,0x08,0x10,0x18,0x00]
53+
0x08,0x07,0x00,0xf0,0x08,0x10,0x18,0x00
54+
55+
# GFX10: image_load v[16:19], v[8:9], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D ; encoding: [0x08,0x0f,0x00,0xf0,0x08,0x10,0x18,0x00]
56+
0x08,0x0f,0x00,0xf0,0x08,0x10,0x18,0x00
57+
58+
# GFX10: image_load v[16:17], v[8:9], s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_2D tfe ; encoding: [0x08,0x01,0x01,0xf0,0x08,0x10,0x18,0x00]
59+
0x08,0x01,0x01,0xf0,0x08,0x10,0x18,0x00
60+
61+
# GFX10: image_load v[16:18], v[8:9], s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_2D tfe ; encoding: [0x08,0x03,0x01,0xf0,0x08,0x10,0x18,0x00]
62+
0x08,0x03,0x01,0xf0,0x08,0x10,0x18,0x00
63+
64+
# GFX10: image_load v[16:19], v[8:9], s[96:103] dmask:0x7 dim:SQ_RSRC_IMG_2D tfe ; encoding: [0x08,0x07,0x01,0xf0,0x08,0x10,0x18,0x00]
65+
0x08,0x07,0x01,0xf0,0x08,0x10,0x18,0x00
66+
67+
# GFX10: image_load v[16:20], v[8:9], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D tfe ; encoding: [0x08,0x0f,0x01,0xf0,0x08,0x10,0x18,0x00]
68+
0x08,0x0f,0x01,0xf0,0x08,0x10,0x18,0x00
69+
70+
# GFX10: image_load v16, v[8:9], s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_2D d16 ; encoding: [0x08,0x01,0x00,0xf0,0x08,0x10,0x18,0x80]
71+
0x08,0x01,0x00,0xf0,0x08,0x10,0x18,0x80
72+
73+
# GFX10: image_load v16, v[8:9], s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_2D d16 ; encoding: [0x08,0x03,0x00,0xf0,0x08,0x10,0x18,0x80]
74+
0x08,0x03,0x00,0xf0,0x08,0x10,0x18,0x80
75+
76+
# GFX10: image_load v[16:17], v[8:9], s[96:103] dmask:0x7 dim:SQ_RSRC_IMG_2D d16 ; encoding: [0x08,0x07,0x00,0xf0,0x08,0x10,0x18,0x80]
77+
0x08,0x07,0x00,0xf0,0x08,0x10,0x18,0x80
78+
79+
# GFX10: image_load v[16:17], v[8:9], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D d16 ; encoding: [0x08,0x0f,0x00,0xf0,0x08,0x10,0x18,0x80]
80+
0x08,0x0f,0x00,0xf0,0x08,0x10,0x18,0x80
81+
82+
# GFX10: image_load v[16:17], v[8:9], s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_2D tfe d16 ; encoding: [0x08,0x01,0x01,0xf0,0x08,0x10,0x18,0x80]
83+
0x08,0x01,0x01,0xf0,0x08,0x10,0x18,0x80
84+
85+
# GFX10: image_load v[16:17], v[8:9], s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_2D tfe d16 ; encoding: [0x08,0x03,0x01,0xf0,0x08,0x10,0x18,0x80]
86+
0x08,0x03,0x01,0xf0,0x08,0x10,0x18,0x80
87+
88+
# GFX10: image_load v[16:18], v[8:9], s[96:103] dmask:0x7 dim:SQ_RSRC_IMG_2D tfe d16 ; encoding: [0x08,0x07,0x01,0xf0,0x08,0x10,0x18,0x80]
89+
0x08,0x07,0x01,0xf0,0x08,0x10,0x18,0x80
90+
91+
# GFX10: image_load v[16:18], v[8:9], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D tfe d16 ; encoding: [0x08,0x0f,0x01,0xf0,0x08,0x10,0x18,0x80]
92+
0x08,0x0f,0x01,0xf0,0x08,0x10,0x18,0x80
93+
4694
# GFX10: image_store v16, v[8:9], s[96:103] dmask:0x4 dim:SQ_RSRC_IMG_2D unorm ; encoding: [0x08,0x14,0x20,0xf0,0x08,0x10,0x18,0x00]
4795
0x08,0x14,0x20,0xf0,0x08,0x10,0x18,0x00
4896

@@ -64,6 +112,54 @@
64112
# GFX10: image_store_mip_pck v[16:19], v[8:11], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_3D unorm ; encoding: [0x10,0x1f,0x2c,0xf0,0x08,0x10,0x18,0x00]
65113
0x10,0x1f,0x2c,0xf0,0x08,0x10,0x18,0x00
66114

115+
# GFX10: image_store v16, v[8:9], s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_2D ; encoding: [0x08,0x01,0x20,0xf0,0x08,0x10,0x18,0x00]
116+
0x08,0x01,0x20,0xf0,0x08,0x10,0x18,0x00
117+
118+
# GFX10: image_store v[16:17], v[8:9], s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_2D ; encoding: [0x08,0x03,0x20,0xf0,0x08,0x10,0x18,0x00]
119+
0x08,0x03,0x20,0xf0,0x08,0x10,0x18,0x00
120+
121+
# GFX10: image_store v[16:18], v[8:9], s[96:103] dmask:0x7 dim:SQ_RSRC_IMG_2D ; encoding: [0x08,0x07,0x20,0xf0,0x08,0x10,0x18,0x00]
122+
0x08,0x07,0x20,0xf0,0x08,0x10,0x18,0x00
123+
124+
# GFX10: image_store v[16:19], v[8:9], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D ; encoding: [0x08,0x0f,0x20,0xf0,0x08,0x10,0x18,0x00]
125+
0x08,0x0f,0x20,0xf0,0x08,0x10,0x18,0x00
126+
127+
# GFX10: image_store v[16:17], v[8:9], s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_2D tfe ; encoding: [0x08,0x01,0x21,0xf0,0x08,0x10,0x18,0x00]
128+
0x08,0x01,0x21,0xf0,0x08,0x10,0x18,0x00
129+
130+
# GFX10: image_store v[16:18], v[8:9], s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_2D tfe ; encoding: [0x08,0x03,0x21,0xf0,0x08,0x10,0x18,0x00]
131+
0x08,0x03,0x21,0xf0,0x08,0x10,0x18,0x00
132+
133+
# GFX10: image_store v[16:19], v[8:9], s[96:103] dmask:0x7 dim:SQ_RSRC_IMG_2D tfe ; encoding: [0x08,0x07,0x21,0xf0,0x08,0x10,0x18,0x00]
134+
0x08,0x07,0x21,0xf0,0x08,0x10,0x18,0x00
135+
136+
# GFX10: image_store v[16:20], v[8:9], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D tfe ; encoding: [0x08,0x0f,0x21,0xf0,0x08,0x10,0x18,0x00]
137+
0x08,0x0f,0x21,0xf0,0x08,0x10,0x18,0x00
138+
139+
# GFX10: image_store v16, v[8:9], s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_2D d16 ; encoding: [0x08,0x01,0x20,0xf0,0x08,0x10,0x18,0x80]
140+
0x08,0x01,0x20,0xf0,0x08,0x10,0x18,0x80
141+
142+
# GFX10: image_store v16, v[8:9], s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_2D d16 ; encoding: [0x08,0x03,0x20,0xf0,0x08,0x10,0x18,0x80]
143+
0x08,0x03,0x20,0xf0,0x08,0x10,0x18,0x80
144+
145+
# GFX10: image_store v[16:17], v[8:9], s[96:103] dmask:0x7 dim:SQ_RSRC_IMG_2D d16 ; encoding: [0x08,0x07,0x20,0xf0,0x08,0x10,0x18,0x80]
146+
0x08,0x07,0x20,0xf0,0x08,0x10,0x18,0x80
147+
148+
# GFX10: image_store v[16:17], v[8:9], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D d16 ; encoding: [0x08,0x0f,0x20,0xf0,0x08,0x10,0x18,0x80]
149+
0x08,0x0f,0x20,0xf0,0x08,0x10,0x18,0x80
150+
151+
# GFX10: image_store v[16:17], v[8:9], s[96:103] dmask:0x1 dim:SQ_RSRC_IMG_2D tfe d16 ; encoding: [0x08,0x01,0x21,0xf0,0x08,0x10,0x18,0x80]
152+
0x08,0x01,0x21,0xf0,0x08,0x10,0x18,0x80
153+
154+
# GFX10: image_store v[16:17], v[8:9], s[96:103] dmask:0x3 dim:SQ_RSRC_IMG_2D tfe d16 ; encoding: [0x08,0x03,0x21,0xf0,0x08,0x10,0x18,0x80]
155+
0x08,0x03,0x21,0xf0,0x08,0x10,0x18,0x80
156+
157+
# GFX10: image_store v[16:18], v[8:9], s[96:103] dmask:0x7 dim:SQ_RSRC_IMG_2D tfe d16 ; encoding: [0x08,0x07,0x21,0xf0,0x08,0x10,0x18,0x80]
158+
0x08,0x07,0x21,0xf0,0x08,0x10,0x18,0x80
159+
160+
# GFX10: image_store v[16:18], v[8:9], s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D tfe d16 ; encoding: [0x08,0x0f,0x21,0xf0,0x08,0x10,0x18,0x80]
161+
0x08,0x0f,0x21,0xf0,0x08,0x10,0x18,0x80
162+
67163
# GFX10: image_get_resinfo v[16:19], v8, s[96:103] dmask:0xf dim:SQ_RSRC_IMG_2D_ARRAY unorm ; encoding: [0x28,0x1f,0x38,0xf0,0x08,0x10,0x18,0x00]
68164
0x28,0x1f,0x38,0xf0,0x08,0x10,0x18,0x00
69165

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3429,7 +3429,7 @@
34293429
# CHECK: image_load v5, v1, s[8:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x00,0xf2,0x01,0x05,0x02,0x00]
34303430
0x00,0x01,0x00,0xf2,0x01,0x05,0x02,0x00
34313431

3432-
# CHECK: image_load v5, v1, s[8:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x01,0xf0,0x01,0x05,0x02,0x00]
3432+
# CHECK: image_load v[5:6], v1, s[8:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x01,0xf0,0x01,0x05,0x02,0x00]
34333433
0x00,0x01,0x01,0xf0,0x01,0x05,0x02,0x00
34343434

34353435
# CHECK: image_load v5, v1, s[8:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x02,0xf0,0x01,0x05,0x02,0x00]
@@ -3510,7 +3510,7 @@
35103510
# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x04,0xf2,0x01,0x05,0x02,0x00]
35113511
0x00,0x01,0x04,0xf2,0x01,0x05,0x02,0x00
35123512

3513-
# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x05,0xf0,0x01,0x05,0x02,0x00]
3513+
# CHECK: image_load_mip v[5:6], v1, s[8:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x05,0xf0,0x01,0x05,0x02,0x00]
35143514
0x00,0x01,0x05,0xf0,0x01,0x05,0x02,0x00
35153515

35163516
# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x06,0xf0,0x01,0x05,0x02,0x00]
@@ -3747,7 +3747,7 @@
37473747
# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x38,0xf2,0x01,0x05,0x02,0x00]
37483748
0x00,0x01,0x38,0xf2,0x01,0x05,0x02,0x00
37493749

3750-
# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x39,0xf0,0x01,0x05,0x02,0x00]
3750+
# CHECK: image_get_resinfo v[5:6], v1, s[8:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x39,0xf0,0x01,0x05,0x02,0x00]
37513751
0x00,0x01,0x39,0xf0,0x01,0x05,0x02,0x00
37523752

37533753
# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x3a,0xf0,0x01,0x05,0x02,0x00]
@@ -4263,7 +4263,7 @@
42634263
# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x80,0xf2,0x01,0x05,0x62,0x00]
42644264
0x00,0x01,0x80,0xf2,0x01,0x05,0x62,0x00
42654265

4266-
# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x81,0xf0,0x01,0x05,0x62,0x00]
4266+
# CHECK: image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x81,0xf0,0x01,0x05,0x62,0x00]
42674267
0x00,0x01,0x81,0xf0,0x01,0x05,0x62,0x00
42684268

42694269
# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x82,0xf0,0x01,0x05,0x62,0x00]
@@ -4353,7 +4353,7 @@
43534353
# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x84,0xf2,0x01,0x05,0x62,0x00]
43544354
0x00,0x01,0x84,0xf2,0x01,0x05,0x62,0x00
43554355

4356-
# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x85,0xf0,0x01,0x05,0x62,0x00]
4356+
# CHECK: image_sample_cl v[5:6], v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x85,0xf0,0x01,0x05,0x62,0x00]
43574357
0x00,0x01,0x85,0xf0,0x01,0x05,0x62,0x00
43584358

43594359
# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x86,0xf0,0x01,0x05,0x62,0x00]
@@ -4443,7 +4443,7 @@
44434443
# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x90,0xf2,0x01,0x05,0x62,0x00]
44444444
0x00,0x01,0x90,0xf2,0x01,0x05,0x62,0x00
44454445

4446-
# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x91,0xf0,0x01,0x05,0x62,0x00]
4446+
# CHECK: image_sample_l v[5:6], v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x91,0xf0,0x01,0x05,0x62,0x00]
44474447
0x00,0x01,0x91,0xf0,0x01,0x05,0x62,0x00
44484448

44494449
# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x92,0xf0,0x01,0x05,0x62,0x00]
@@ -4533,7 +4533,7 @@
45334533
# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x94,0xf2,0x01,0x05,0x62,0x00]
45344534
0x00,0x01,0x94,0xf2,0x01,0x05,0x62,0x00
45354535

4536-
# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x95,0xf0,0x01,0x05,0x62,0x00]
4536+
# CHECK: image_sample_b v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x95,0xf0,0x01,0x05,0x62,0x00]
45374537
0x00,0x01,0x95,0xf0,0x01,0x05,0x62,0x00
45384538

45394539
# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x96,0xf0,0x01,0x05,0x62,0x00]
@@ -4623,7 +4623,7 @@
46234623
# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x98,0xf2,0x01,0x05,0x62,0x00]
46244624
0x00,0x01,0x98,0xf2,0x01,0x05,0x62,0x00
46254625

4626-
# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x99,0xf0,0x01,0x05,0x62,0x00]
4626+
# CHECK: image_sample_b_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x99,0xf0,0x01,0x05,0x62,0x00]
46274627
0x00,0x01,0x99,0xf0,0x01,0x05,0x62,0x00
46284628

46294629
# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x9a,0xf0,0x01,0x05,0x62,0x00]
@@ -4713,7 +4713,7 @@
47134713
# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x9c,0xf2,0x01,0x05,0x62,0x00]
47144714
0x00,0x01,0x9c,0xf2,0x01,0x05,0x62,0x00
47154715

4716-
# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x9d,0xf0,0x01,0x05,0x62,0x00]
4716+
# CHECK: image_sample_lz v[5:6], v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x9d,0xf0,0x01,0x05,0x62,0x00]
47174717
0x00,0x01,0x9d,0xf0,0x01,0x05,0x62,0x00
47184718

47194719
# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x9e,0xf0,0x01,0x05,0x62,0x00]
@@ -4803,7 +4803,7 @@
48034803
# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0xa0,0xf2,0x01,0x05,0x62,0x00]
48044804
0x00,0x01,0xa0,0xf2,0x01,0x05,0x62,0x00
48054805

4806-
# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xa1,0xf0,0x01,0x05,0x62,0x00]
4806+
# CHECK: image_sample_c v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xa1,0xf0,0x01,0x05,0x62,0x00]
48074807
0x00,0x01,0xa1,0xf0,0x01,0x05,0x62,0x00
48084808

48094809
# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0xa2,0xf0,0x01,0x05,0x62,0x00]
@@ -4893,7 +4893,7 @@
48934893
# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0xa4,0xf2,0x01,0x05,0x62,0x00]
48944894
0x00,0x01,0xa4,0xf2,0x01,0x05,0x62,0x00
48954895

4896-
# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xa5,0xf0,0x01,0x05,0x62,0x00]
4896+
# CHECK: image_sample_c_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xa5,0xf0,0x01,0x05,0x62,0x00]
48974897
0x00,0x01,0xa5,0xf0,0x01,0x05,0x62,0x00
48984898

48994899
# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0xa6,0xf0,0x01,0x05,0x62,0x00]
@@ -4983,7 +4983,7 @@
49834983
# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0xb0,0xf2,0x01,0x05,0x62,0x00]
49844984
0x00,0x01,0xb0,0xf2,0x01,0x05,0x62,0x00
49854985

4986-
# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xb1,0xf0,0x01,0x05,0x62,0x00]
4986+
# CHECK: image_sample_c_l v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xb1,0xf0,0x01,0x05,0x62,0x00]
49874987
0x00,0x01,0xb1,0xf0,0x01,0x05,0x62,0x00
49884988

49894989
# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0xb2,0xf0,0x01,0x05,0x62,0x00]
@@ -5073,7 +5073,7 @@
50735073
# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0xb4,0xf2,0x01,0x05,0x62,0x00]
50745074
0x00,0x01,0xb4,0xf2,0x01,0x05,0x62,0x00
50755075

5076-
# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xb5,0xf0,0x01,0x05,0x62,0x00]
5076+
# CHECK: image_sample_c_b v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xb5,0xf0,0x01,0x05,0x62,0x00]
50775077
0x00,0x01,0xb5,0xf0,0x01,0x05,0x62,0x00
50785078

50795079
# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0xb6,0xf0,0x01,0x05,0x62,0x00]
@@ -5163,7 +5163,7 @@
51635163
# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0xb8,0xf2,0x01,0x05,0x62,0x00]
51645164
0x00,0x01,0xb8,0xf2,0x01,0x05,0x62,0x00
51655165

5166-
# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xb9,0xf0,0x01,0x05,0x62,0x00]
5166+
# CHECK: image_sample_c_b_cl v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xb9,0xf0,0x01,0x05,0x62,0x00]
51675167
0x00,0x01,0xb9,0xf0,0x01,0x05,0x62,0x00
51685168

51695169
# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0xba,0xf0,0x01,0x05,0x62,0x00]
@@ -5253,7 +5253,7 @@
52535253
# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0xbc,0xf2,0x01,0x05,0x62,0x00]
52545254
0x00,0x01,0xbc,0xf2,0x01,0x05,0x62,0x00
52555255

5256-
# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xbd,0xf0,0x01,0x05,0x62,0x00]
5256+
# CHECK: image_sample_c_lz v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0xbd,0xf0,0x01,0x05,0x62,0x00]
52575257
0x00,0x01,0xbd,0xf0,0x01,0x05,0x62,0x00
52585258

52595259
# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0xbe,0xf0,0x01,0x05,0x62,0x00]
@@ -6642,7 +6642,7 @@
66426642
# CHECK: image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x1 slc ; encoding: [0x00,0x01,0x80,0xf3,0x01,0x05,0x62,0x00]
66436643
0x00,0x01,0x80,0xf3,0x01,0x05,0x62,0x00
66446644

6645-
# CHECK: image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x81,0xf1,0x01,0x05,0x62,0x00]
6645+
# CHECK: image_get_lod v[5:6], v1, s[8:15], s[12:15] dmask:0x1 tfe ; encoding: [0x00,0x01,0x81,0xf1,0x01,0x05,0x62,0x00]
66466646
0x00,0x01,0x81,0xf1,0x01,0x05,0x62,0x00
66476647

66486648
# CHECK: image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x1 lwe ; encoding: [0x00,0x01,0x82,0xf1,0x01,0x05,0x62,0x00]

0 commit comments

Comments
 (0)