[llvm] 241f330 - [AMDGPU] Add gfx8 assembler and disassembler test cases

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 12 13:15:55 PST 2020


Author: Jay Foad
Date: 2020-01-12T21:12:48Z
New Revision: 241f330d6bab52ab4e3a01cbb9a3edd417d07c59

URL: https://github.com/llvm/llvm-project/commit/241f330d6bab52ab4e3a01cbb9a3edd417d07c59
DIFF: https://github.com/llvm/llvm-project/commit/241f330d6bab52ab4e3a01cbb9a3edd417d07c59.diff

LOG: [AMDGPU] Add gfx8 assembler and disassembler test cases

Summary:
This adds assembler tests for cases that were previously only in the
disassembler tests, and vice versa.

Reviewers: rampitec, arsenm, nhaehnle

Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, jfb, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72561

Added: 
    

Modified: 
    llvm/test/MC/AMDGPU/gfx8_asm_all.s
    llvm/test/MC/Disassembler/AMDGPU/gfx8_dasm_all.txt

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/AMDGPU/gfx8_asm_all.s b/llvm/test/MC/AMDGPU/gfx8_asm_all.s
index 1f2de29cccb3..0ca4edcfb2c8 100644
--- a/llvm/test/MC/AMDGPU/gfx8_asm_all.s
+++ b/llvm/test/MC/AMDGPU/gfx8_asm_all.s
@@ -7089,6 +7089,9 @@ image_get_lod v[5:7], v1, s[8:15], s[12:15] dmask:0xd
 image_get_lod v[5:7], v1, s[8:15], s[12:15] dmask:0xe
 // CHECK: [0x00,0x0e,0x80,0xf1,0x01,0x05,0x62,0x00]
 
+image_get_lod v[5:8], v1, s[8:15], s[12:15] dmask:0xf
+// CHECK: [0x00,0x0f,0x80,0xf1,0x01,0x05,0x62,0x00]
+
 image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x0
 // CHECK: [0x00,0x00,0x80,0xf1,0x01,0x05,0x62,0x00]
 
@@ -8781,6 +8784,12 @@ buffer_atomic_swap v5, off, s[8:11], 0 offset:4095
 buffer_atomic_swap v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x00,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_swap v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x00,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_swap v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x00,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_swap v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x00,0xe1,0x00,0x05,0x02,0x03]
 
@@ -8829,6 +8838,12 @@ buffer_atomic_cmpswap v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_cmpswap v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x04,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_cmpswap v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x04,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_cmpswap v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x04,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_cmpswap v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x04,0xe1,0x00,0x05,0x02,0x03]
 
@@ -8877,6 +8892,12 @@ buffer_atomic_add v5, off, s[8:11], 0 offset:4095
 buffer_atomic_add v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x08,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_add v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x08,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_add v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x08,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_add v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x08,0xe1,0x00,0x05,0x02,0x03]
 
@@ -8925,6 +8946,12 @@ buffer_atomic_sub v5, off, s[8:11], 0 offset:4095
 buffer_atomic_sub v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x0c,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_sub v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x0c,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_sub v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x0c,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_sub v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x0c,0xe1,0x00,0x05,0x02,0x03]
 
@@ -8973,6 +9000,12 @@ buffer_atomic_smin v5, off, s[8:11], 0 offset:4095
 buffer_atomic_smin v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x10,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_smin v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x10,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_smin v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x10,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_smin v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x10,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9021,6 +9054,12 @@ buffer_atomic_umin v5, off, s[8:11], 0 offset:4095
 buffer_atomic_umin v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x14,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_umin v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x14,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_umin v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x14,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_umin v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x14,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9069,6 +9108,12 @@ buffer_atomic_smax v5, off, s[8:11], 0 offset:4095
 buffer_atomic_smax v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x18,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_smax v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x18,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_smax v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x18,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_smax v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x18,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9117,6 +9162,12 @@ buffer_atomic_umax v5, off, s[8:11], 0 offset:4095
 buffer_atomic_umax v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x1c,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_umax v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x1c,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_umax v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x1c,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_umax v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x1c,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9165,6 +9216,12 @@ buffer_atomic_and v5, off, s[8:11], 0 offset:4095
 buffer_atomic_and v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x20,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_and v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x20,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_and v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x20,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_and v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x20,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9213,6 +9270,12 @@ buffer_atomic_or v5, off, s[8:11], 0 offset:4095
 buffer_atomic_or v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x24,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_or v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x24,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_or v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x24,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_or v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x24,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9261,6 +9324,12 @@ buffer_atomic_xor v5, off, s[8:11], 0 offset:4095
 buffer_atomic_xor v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x28,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_xor v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x28,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_xor v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x28,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_xor v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x28,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9309,6 +9378,12 @@ buffer_atomic_inc v5, off, s[8:11], 0 offset:4095
 buffer_atomic_inc v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x2c,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_inc v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x2c,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_inc v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x2c,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_inc v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x2c,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9357,6 +9432,12 @@ buffer_atomic_dec v5, off, s[8:11], 0 offset:4095
 buffer_atomic_dec v5, off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x30,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_dec v5, off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x30,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_dec v5, off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x30,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_dec v5, v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x30,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9405,6 +9486,12 @@ buffer_atomic_swap_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_swap_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x80,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_swap_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x80,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_swap_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x80,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_swap_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x80,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9453,6 +9540,12 @@ buffer_atomic_cmpswap_x2 v[5:8], off, s[8:11], 0 offset:4095
 buffer_atomic_cmpswap_x2 v[5:8], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x84,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_cmpswap_x2 v[5:8], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x84,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_cmpswap_x2 v[5:8], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x84,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_cmpswap_x2 v[5:8], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x84,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9501,6 +9594,12 @@ buffer_atomic_add_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_add_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x88,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_add_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x88,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_add_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x88,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_add_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x88,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9549,6 +9648,12 @@ buffer_atomic_sub_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_sub_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x8c,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_sub_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x8c,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_sub_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x8c,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_sub_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x8c,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9597,6 +9702,12 @@ buffer_atomic_smin_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_smin_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x90,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_smin_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x90,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_smin_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x90,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_smin_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x90,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9645,6 +9756,12 @@ buffer_atomic_umin_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_umin_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x94,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_umin_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x94,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_umin_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x94,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_umin_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x94,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9693,6 +9810,12 @@ buffer_atomic_smax_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_smax_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x98,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_smax_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x98,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_smax_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x98,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_smax_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x98,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9741,6 +9864,12 @@ buffer_atomic_umax_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_umax_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0x9c,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_umax_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0x9c,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_umax_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0x9c,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_umax_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0x9c,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9789,6 +9918,12 @@ buffer_atomic_and_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_and_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0xa0,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_and_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0xa0,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_and_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0xa0,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_and_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0xa0,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9837,6 +9972,12 @@ buffer_atomic_or_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_or_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0xa4,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_or_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0xa4,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_or_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0xa4,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_or_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0xa4,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9885,6 +10026,12 @@ buffer_atomic_xor_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_xor_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0xa8,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_xor_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0xa8,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_xor_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0xa8,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_xor_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0xa8,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9933,6 +10080,12 @@ buffer_atomic_inc_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_inc_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0xac,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_inc_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0xac,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_inc_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0xac,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_inc_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0xac,0xe1,0x00,0x05,0x02,0x03]
 
@@ -9981,6 +10134,12 @@ buffer_atomic_dec_x2 v[5:6], off, s[8:11], 0 offset:4095
 buffer_atomic_dec_x2 v[5:6], off, s[8:11], -1 offset:4095
 // CHECK: [0xff,0x0f,0xb0,0xe1,0x00,0x05,0x02,0xc1]
 
+buffer_atomic_dec_x2 v[5:6], off, s[8:11], 0.5 offset:4095
+// CHECK: [0xff,0x0f,0xb0,0xe1,0x00,0x05,0x02,0xf0]
+
+buffer_atomic_dec_x2 v[5:6], off, s[8:11], -4.0 offset:4095
+// CHECK: [0xff,0x0f,0xb0,0xe1,0x00,0x05,0x02,0xf7]
+
 buffer_atomic_dec_x2 v[5:6], v0, s[8:11], s3 idxen offset:4095
 // CHECK: [0xff,0x2f,0xb0,0xe1,0x00,0x05,0x02,0x03]
 

diff  --git a/llvm/test/MC/Disassembler/AMDGPU/gfx8_dasm_all.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx8_dasm_all.txt
index 64e8d17467ba..b4e1c28af744 100644
--- a/llvm/test/MC/Disassembler/AMDGPU/gfx8_dasm_all.txt
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx8_dasm_all.txt
@@ -1074,9 +1074,24 @@
 # CHECK: ds_read_u16 v5, v1 offset:65535 gds    ; encoding: [0xff,0xff,0x79,0xd8,0x01,0x00,0x00,0x05]
 0xff,0xff,0x79,0xd8,0x01,0x00,0x00,0x05
 
+# CHECK: ds_swizzle_b32 v5, v1 offset:65535    ; encoding: [0xff,0xff,0x7a,0xd8,0x01,0x00,0x00,0x05]
+0xff,0xff,0x7a,0xd8,0x01,0x00,0x00,0x05
+
+# CHECK: ds_swizzle_b32 v255, v1 offset:65535    ; encoding: [0xff,0xff,0x7a,0xd8,0x01,0x00,0x00,0xff]
+0xff,0xff,0x7a,0xd8,0x01,0x00,0x00,0xff
+
+# CHECK: ds_swizzle_b32 v5, v255 offset:65535    ; encoding: [0xff,0xff,0x7a,0xd8,0xff,0x00,0x00,0x05]
+0xff,0xff,0x7a,0xd8,0xff,0x00,0x00,0x05
+
 # CHECK: ds_swizzle_b32 v5, v1    ; encoding: [0x00,0x00,0x7a,0xd8,0x01,0x00,0x00,0x05]
 0x00,0x00,0x7a,0xd8,0x01,0x00,0x00,0x05
 
+# CHECK: ds_swizzle_b32 v5, v1 offset:swizzle(BITMASK_PERM,"00p00")    ; encoding: [0x04,0x00,0x7a,0xd8,0x01,0x00,0x00,0x05]
+0x04,0x00,0x7a,0xd8,0x01,0x00,0x00,0x05
+
+# CHECK: ds_swizzle_b32 v5, v1 offset:65535 gds    ; encoding: [0xff,0xff,0x7b,0xd8,0x01,0x00,0x00,0x05]
+0xff,0xff,0x7b,0xd8,0x01,0x00,0x00,0x05
+
 # CHECK: ds_permute_b32 v5, v1, v2 offset:65535    ; encoding: [0xff,0xff,0x7c,0xd8,0x01,0x02,0x00,0x05]
 0xff,0xff,0x7c,0xd8,0x01,0x02,0x00,0x05
 
@@ -3345,6 +3360,402 @@
 # CHECK: flat_atomic_dec_x2 v[1:2], v[2:3] slc    ; encoding: [0x00,0x00,0xb2,0xdd,0x01,0x02,0x00,0x00]
 0x00,0x00,0xb2,0xdd,0x01,0x02,0x00,0x00
 
+# CHECK: image_load v5, v1, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v252, v1, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x01,0x00,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_load v5, v252, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf0,0xfc,0x05,0x02,0x00]
+0x00,0x01,0x00,0xf0,0xfc,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[12:19] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x01,0x00,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_load v5, v1, s[92:99] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x01,0x00,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_load v5, v1, ttmp[4:11] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x01,0x00,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x2    ; encoding: [0x00,0x02,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x02,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:6], v1, s[8:15] dmask:0x3    ; encoding: [0x00,0x03,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x03,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x4    ; encoding: [0x00,0x04,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x04,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:6], v1, s[8:15] dmask:0x5    ; encoding: [0x00,0x05,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x05,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:6], v1, s[8:15] dmask:0x6    ; encoding: [0x00,0x06,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x06,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:7], v1, s[8:15] dmask:0x7    ; encoding: [0x00,0x07,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x07,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x8    ; encoding: [0x00,0x08,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x08,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:6], v1, s[8:15] dmask:0x9    ; encoding: [0x00,0x09,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x09,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:6], v1, s[8:15] dmask:0xa    ; encoding: [0x00,0x0a,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0a,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:7], v1, s[8:15] dmask:0xb    ; encoding: [0x00,0x0b,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0b,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:6], v1, s[8:15] dmask:0xc    ; encoding: [0x00,0x0c,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0c,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:7], v1, s[8:15] dmask:0xd    ; encoding: [0x00,0x0d,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0d,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v[5:7], v1, s[8:15] dmask:0xe    ; encoding: [0x00,0x0e,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0e,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15]    ; encoding: [0x00,0x00,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x00,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x21,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x00,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x01,0x00,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x1 tfe    ; encoding: [0x00,0x01,0x01,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x01,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x02,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x02,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x00,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x41,0x00,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load v5, v1, s[8:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x80]
+0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x80
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v252, v1, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x01,0x04,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_load_mip v5, v252, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf0,0xfc,0x05,0x02,0x00]
+0x00,0x01,0x04,0xf0,0xfc,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[12:19] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x01,0x04,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_load_mip v5, v1, s[92:99] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x01,0x04,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_load_mip v5, v1, ttmp[4:11] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x01,0x04,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x2    ; encoding: [0x00,0x02,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x02,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:6], v1, s[8:15] dmask:0x3    ; encoding: [0x00,0x03,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x03,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x4    ; encoding: [0x00,0x04,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x04,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:6], v1, s[8:15] dmask:0x5    ; encoding: [0x00,0x05,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x05,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:6], v1, s[8:15] dmask:0x6    ; encoding: [0x00,0x06,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x06,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:7], v1, s[8:15] dmask:0x7    ; encoding: [0x00,0x07,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x07,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x8    ; encoding: [0x00,0x08,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x08,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:6], v1, s[8:15] dmask:0x9    ; encoding: [0x00,0x09,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x09,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:6], v1, s[8:15] dmask:0xa    ; encoding: [0x00,0x0a,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0a,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:7], v1, s[8:15] dmask:0xb    ; encoding: [0x00,0x0b,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0b,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:6], v1, s[8:15] dmask:0xc    ; encoding: [0x00,0x0c,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0c,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:7], v1, s[8:15] dmask:0xd    ; encoding: [0x00,0x0d,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0d,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v[5:7], v1, s[8:15] dmask:0xe    ; encoding: [0x00,0x0e,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0e,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15]    ; encoding: [0x00,0x00,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x00,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x21,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x04,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x01,0x04,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 tfe    ; encoding: [0x00,0x01,0x05,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x05,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x06,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x06,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x04,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x41,0x04,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_load_mip v5, v1, s[8:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x04,0xf0,0x01,0x05,0x02,0x80]
+0x00,0x01,0x04,0xf0,0x01,0x05,0x02,0x80
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v252, v2, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x20,0xf0,0x02,0xfc,0x03,0x00]
+0x00,0x11,0x20,0xf0,0x02,0xfc,0x03,0x00
+
+# CHECK: image_store v1, v252, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x20,0xf0,0xfc,0x01,0x03,0x00]
+0x00,0x11,0x20,0xf0,0xfc,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[16:23] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x20,0xf0,0x02,0x01,0x04,0x00]
+0x00,0x11,0x20,0xf0,0x02,0x01,0x04,0x00
+
+# CHECK: image_store v1, v2, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x20,0xf0,0x02,0x01,0x17,0x00]
+0x00,0x11,0x20,0xf0,0x02,0x01,0x17,0x00
+
+# CHECK: image_store v1, v2, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x20,0xf0,0x02,0x01,0x1d,0x00]
+0x00,0x11,0x20,0xf0,0x02,0x01,0x1d,0x00
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x2 unorm    ; encoding: [0x00,0x12,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x12,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:2], v2, s[12:19] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x13,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x4 unorm    ; encoding: [0x00,0x14,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x14,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:2], v2, s[12:19] dmask:0x5 unorm    ; encoding: [0x00,0x15,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x15,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:2], v2, s[12:19] dmask:0x6 unorm    ; encoding: [0x00,0x16,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x16,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:3], v2, s[12:19] dmask:0x7 unorm    ; encoding: [0x00,0x17,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x17,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x8 unorm    ; encoding: [0x00,0x18,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x18,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:2], v2, s[12:19] dmask:0x9 unorm    ; encoding: [0x00,0x19,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x19,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:2], v2, s[12:19] dmask:0xa unorm    ; encoding: [0x00,0x1a,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1a,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:3], v2, s[12:19] dmask:0xb unorm    ; encoding: [0x00,0x1b,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1b,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:2], v2, s[12:19] dmask:0xc unorm    ; encoding: [0x00,0x1c,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1c,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:3], v2, s[12:19] dmask:0xd unorm    ; encoding: [0x00,0x1d,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1d,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:3], v2, s[12:19] dmask:0xe unorm    ; encoding: [0x00,0x1e,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1e,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v[1:4], v2, s[12:19] dmask:0xf unorm    ; encoding: [0x00,0x1f,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1f,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[12:19] unorm    ; encoding: [0x00,0x10,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x10,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x31,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x20,0xf2,0x02,0x01,0x03,0x00]
+0x00,0x11,0x20,0xf2,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x22,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x11,0x22,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x20,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x51,0x20,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store v1, v2, s[12:19] dmask:0x1 unorm d16    ; encoding: [0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x80]
+0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x80
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x11,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v252, v2, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x24,0xf0,0x02,0xfc,0x03,0x00]
+0x00,0x11,0x24,0xf0,0x02,0xfc,0x03,0x00
+
+# CHECK: image_store_mip v1, v252, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x24,0xf0,0xfc,0x01,0x03,0x00]
+0x00,0x11,0x24,0xf0,0xfc,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[16:23] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x24,0xf0,0x02,0x01,0x04,0x00]
+0x00,0x11,0x24,0xf0,0x02,0x01,0x04,0x00
+
+# CHECK: image_store_mip v1, v2, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x24,0xf0,0x02,0x01,0x17,0x00]
+0x00,0x11,0x24,0xf0,0x02,0x01,0x17,0x00
+
+# CHECK: image_store_mip v1, v2, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x24,0xf0,0x02,0x01,0x1d,0x00]
+0x00,0x11,0x24,0xf0,0x02,0x01,0x1d,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x2 unorm    ; encoding: [0x00,0x12,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x12,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:2], v2, s[12:19] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x13,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x4 unorm    ; encoding: [0x00,0x14,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x14,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:2], v2, s[12:19] dmask:0x5 unorm    ; encoding: [0x00,0x15,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x15,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:2], v2, s[12:19] dmask:0x6 unorm    ; encoding: [0x00,0x16,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x16,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:3], v2, s[12:19] dmask:0x7 unorm    ; encoding: [0x00,0x17,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x17,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x8 unorm    ; encoding: [0x00,0x18,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x18,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:2], v2, s[12:19] dmask:0x9 unorm    ; encoding: [0x00,0x19,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x19,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:2], v2, s[12:19] dmask:0xa unorm    ; encoding: [0x00,0x1a,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1a,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:3], v2, s[12:19] dmask:0xb unorm    ; encoding: [0x00,0x1b,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1b,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:2], v2, s[12:19] dmask:0xc unorm    ; encoding: [0x00,0x1c,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1c,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:3], v2, s[12:19] dmask:0xd unorm    ; encoding: [0x00,0x1d,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1d,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:3], v2, s[12:19] dmask:0xe unorm    ; encoding: [0x00,0x1e,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1e,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v[1:4], v2, s[12:19] dmask:0xf unorm    ; encoding: [0x00,0x1f,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x1f,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] unorm    ; encoding: [0x00,0x10,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x10,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x31,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x24,0xf2,0x02,0x01,0x03,0x00]
+0x00,0x11,0x24,0xf2,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x26,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x11,0x26,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x24,0xf0,0x02,0x01,0x03,0x00]
+0x00,0x51,0x24,0xf0,0x02,0x01,0x03,0x00
+
+# CHECK: image_store_mip v1, v2, s[12:19] dmask:0x1 unorm d16    ; encoding: [0x00,0x11,0x24,0xf0,0x02,0x01,0x03,0x80]
+0x00,0x11,0x24,0xf0,0x02,0x01,0x03,0x80
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v252, v1, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x01,0x38,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v252, s[8:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf0,0xfc,0x05,0x02,0x00]
+0x00,0x01,0x38,0xf0,0xfc,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[12:19] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x01,0x38,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[92:99] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x01,0x38,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_get_resinfo v5, v1, ttmp[4:11] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x01,0x38,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x2    ; encoding: [0x00,0x02,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x02,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:6], v1, s[8:15] dmask:0x3    ; encoding: [0x00,0x03,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x03,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x4    ; encoding: [0x00,0x04,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x04,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:6], v1, s[8:15] dmask:0x5    ; encoding: [0x00,0x05,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x05,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:6], v1, s[8:15] dmask:0x6    ; encoding: [0x00,0x06,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x06,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:7], v1, s[8:15] dmask:0x7    ; encoding: [0x00,0x07,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x07,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x8    ; encoding: [0x00,0x08,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x08,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:6], v1, s[8:15] dmask:0x9    ; encoding: [0x00,0x09,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x09,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:6], v1, s[8:15] dmask:0xa    ; encoding: [0x00,0x0a,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0a,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:7], v1, s[8:15] dmask:0xb    ; encoding: [0x00,0x0b,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0b,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:6], v1, s[8:15] dmask:0xc    ; encoding: [0x00,0x0c,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0c,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:7], v1, s[8:15] dmask:0xd    ; encoding: [0x00,0x0d,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0d,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v[5:7], v1, s[8:15] dmask:0xe    ; encoding: [0x00,0x0e,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x0e,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15]    ; encoding: [0x00,0x00,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x00,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x21,0x38,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x38,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x01,0x38,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 tfe    ; encoding: [0x00,0x01,0x39,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x39,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x3a,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x01,0x3a,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_get_resinfo v5, v1, s[8:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x38,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x41,0x38,0xf0,0x01,0x05,0x02,0x00
+
 # CHECK: image_atomic_swap v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x40,0xf0,0x01,0x05,0x02,0x00]
 0x00,0x11,0x40,0xf0,0x01,0x05,0x02,0x00
 
@@ -3549,230 +3960,2606 @@
 # CHECK: image_atomic_smax v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0x01,0xfc,0x02,0x00]
 0x00,0x11,0x58,0xf0,0x01,0xfc,0x02,0x00
 
-# CHECK: image_atomic_smax v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0xff,0x05,0x02,0x00]
-0x00,0x11,0x58,0xf0,0xff,0x05,0x02,0x00
+# CHECK: image_atomic_smax v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0xff,0x05,0x02,0x00]
+0x00,0x11,0x58,0xf0,0xff,0x05,0x02,0x00
+
+# CHECK: image_atomic_smax v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x11,0x58,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_atomic_smax v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x11,0x58,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_atomic_smax v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x11,0x58,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_atomic_smax v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x58,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x13,0x58,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x58,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x31,0x58,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x58,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x11,0x58,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x5a,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x5a,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x58,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x51,0x58,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x5c,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_umax v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x11,0x5c,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_atomic_umax v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0xff,0x05,0x02,0x00]
+0x00,0x11,0x5c,0xf0,0xff,0x05,0x02,0x00
+
+# CHECK: image_atomic_umax v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x11,0x5c,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_atomic_umax v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x11,0x5c,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_atomic_umax v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x11,0x5c,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_atomic_umax v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x5c,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x13,0x5c,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x5c,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x31,0x5c,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x5c,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x11,0x5c,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x5e,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x5e,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x5c,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x51,0x5c,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x60,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_and v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x11,0x60,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_atomic_and v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0xff,0x05,0x02,0x00]
+0x00,0x11,0x60,0xf0,0xff,0x05,0x02,0x00
+
+# CHECK: image_atomic_and v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x11,0x60,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_atomic_and v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x11,0x60,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_atomic_and v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x11,0x60,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_atomic_and v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x60,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x13,0x60,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x60,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x31,0x60,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x60,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x11,0x60,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x62,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x62,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x60,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x51,0x60,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x64,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_or v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x11,0x64,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_atomic_or v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0xff,0x05,0x02,0x00]
+0x00,0x11,0x64,0xf0,0xff,0x05,0x02,0x00
+
+# CHECK: image_atomic_or v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x11,0x64,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_atomic_or v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x11,0x64,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_atomic_or v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x11,0x64,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_atomic_or v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x64,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x13,0x64,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x64,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x31,0x64,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x64,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x11,0x64,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x66,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x66,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x64,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x51,0x64,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x68,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_xor v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x11,0x68,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_atomic_xor v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0xff,0x05,0x02,0x00]
+0x00,0x11,0x68,0xf0,0xff,0x05,0x02,0x00
+
+# CHECK: image_atomic_xor v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x11,0x68,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_atomic_xor v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x11,0x68,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_atomic_xor v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x11,0x68,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_atomic_xor v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x68,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x13,0x68,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x68,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x31,0x68,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x68,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x11,0x68,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x6a,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x6a,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x68,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x51,0x68,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x6c,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_inc v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x11,0x6c,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_atomic_inc v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0xff,0x05,0x02,0x00]
+0x00,0x11,0x6c,0xf0,0xff,0x05,0x02,0x00
+
+# CHECK: image_atomic_inc v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x11,0x6c,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_atomic_inc v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x11,0x6c,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_atomic_inc v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x11,0x6c,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_atomic_inc v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x6c,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x13,0x6c,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x6c,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x31,0x6c,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x6c,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x11,0x6c,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x6e,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x6e,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x6c,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x51,0x6c,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x70,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_dec v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0xfc,0x02,0x00]
+0x00,0x11,0x70,0xf0,0x01,0xfc,0x02,0x00
+
+# CHECK: image_atomic_dec v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0xff,0x05,0x02,0x00]
+0x00,0x11,0x70,0xf0,0xff,0x05,0x02,0x00
+
+# CHECK: image_atomic_dec v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0x05,0x03,0x00]
+0x00,0x11,0x70,0xf0,0x01,0x05,0x03,0x00
+
+# CHECK: image_atomic_dec v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0x05,0x17,0x00]
+0x00,0x11,0x70,0xf0,0x01,0x05,0x17,0x00
+
+# CHECK: image_atomic_dec v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0x05,0x1d,0x00]
+0x00,0x11,0x70,0xf0,0x01,0x05,0x1d,0x00
+
+# CHECK: image_atomic_dec v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x70,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x13,0x70,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x70,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x31,0x70,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x70,0xf2,0x01,0x05,0x02,0x00]
+0x00,0x11,0x70,0xf2,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x72,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x11,0x72,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x70,0xf0,0x01,0x05,0x02,0x00]
+0x00,0x51,0x70,0xf0,0x01,0x05,0x02,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v252, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x80,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample v5, v252, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x80,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0x80,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample v5, v1, s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0x80,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample v5, v1, ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x80,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0x80,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0x80,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample v5, v1, s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x80,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:7], v1, s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:7], v1, s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:7], v1, s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v[5:7], v1, s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15]    ; encoding: [0x00,0x00,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x80,0xf2,0x01,0x05,0x62,0x00]
+0x00,0x01,0x80,0xf2,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 tfe    ; encoding: [0x00,0x01,0x81,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x81,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x82,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x82,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x80,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0x80,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x80,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0x80,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v252, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x84,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_cl v5, v252, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x84,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0x84,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_cl v5, v1, s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0x84,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_cl v5, v1, ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x84,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0x84,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0x84,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_cl v5, v1, s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x84,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:6], v1, s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:6], v1, s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:6], v1, s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:7], v1, s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:6], v1, s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:6], v1, s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:7], v1, s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:6], v1, s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:7], v1, s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v[5:7], v1, s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15]    ; encoding: [0x00,0x00,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x84,0xf2,0x01,0x05,0x62,0x00]
+0x00,0x01,0x84,0xf2,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 tfe    ; encoding: [0x00,0x01,0x85,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x85,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x86,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x86,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x84,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0x84,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_cl v5, v1, s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x84,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0x84,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v252, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x90,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_l v5, v252, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x90,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0x90,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_l v5, v1, s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0x90,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_l v5, v1, ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x90,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0x90,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0x90,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_l v5, v1, s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x90,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:6], v1, s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:6], v1, s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:6], v1, s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:7], v1, s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:6], v1, s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:6], v1, s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:7], v1, s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:6], v1, s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:7], v1, s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v[5:7], v1, s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15]    ; encoding: [0x00,0x00,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x90,0xf2,0x01,0x05,0x62,0x00]
+0x00,0x01,0x90,0xf2,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 tfe    ; encoding: [0x00,0x01,0x91,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x91,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x92,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x92,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x90,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0x90,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_l v5, v1, s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x90,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0x90,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v252, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x94,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_b v5, v[252:253], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x94,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0x94,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0x94,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_b v5, v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x94,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0x94,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0x94,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x94,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:7], v[1:2], s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15]    ; encoding: [0x00,0x00,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0x94,0xf2,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0x95,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0x96,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x94,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0x94,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b v5, v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x94,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0x94,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v252, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x98,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[252:253], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x98,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0x98,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0x98,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x98,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0x98,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0x98,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x98,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15]    ; encoding: [0x00,0x00,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0x98,0xf2,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0x99,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0x9a,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x98,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0x98,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_b_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x98,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0x98,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v252, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x9c,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_lz v5, v252, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x9c,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0x9c,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_lz v5, v1, s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0x9c,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_lz v5, v1, ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x9c,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0x9c,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0x9c,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_lz v5, v1, s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x9c,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:6], v1, s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:6], v1, s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:6], v1, s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:7], v1, s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:6], v1, s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:6], v1, s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:7], v1, s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:6], v1, s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:7], v1, s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v[5:7], v1, s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15]    ; encoding: [0x00,0x00,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x9c,0xf2,0x01,0x05,0x62,0x00]
+0x00,0x01,0x9c,0xf2,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 tfe    ; encoding: [0x00,0x01,0x9d,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x9d,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x9e,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0x9e,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x9c,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0x9c,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_lz v5, v1, s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x9c,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0x9c,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v252, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0xa0,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_c v5, v[252:253], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0xa0,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0xa0,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0xa0,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_c v5, v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0xa0,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0xa0,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0xa0,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0xa0,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:7], v[1:2], s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15]    ; encoding: [0x00,0x00,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xa0,0xf2,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xa1,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xa2,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0xa0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0xa0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c v5, v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0xa0,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0xa0,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v252, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0xa4,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[252:253], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0xa4,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0xa4,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0xa4,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0xa4,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0xa4,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0xa4,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0xa4,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15]    ; encoding: [0x00,0x00,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xa4,0xf2,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xa5,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xa6,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0xa4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0xa4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0xa4,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0xa4,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v252, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0xb0,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[252:253], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0xb0,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0xb0,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0xb0,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0xb0,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0xb0,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0xb0,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0xb0,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:7], v[1:2], s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15]    ; encoding: [0x00,0x00,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xb0,0xf2,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xb1,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xb2,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0xb0,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0xb0,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_l v5, v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0xb0,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0xb0,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v252, v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0xb4,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[252:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0xb4,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0xb4,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0xb4,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0xb4,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0xb4,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0xb4,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0xb4,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:7], v[1:3], s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:6], v[1:3], s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:6], v[1:3], s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15]    ; encoding: [0x00,0x00,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xb4,0xf2,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xb5,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xb6,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0xb4,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0xb4,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b v5, v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0xb4,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0xb4,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v252, v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0xb8,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[252:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0xb8,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0xb8,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0xb8,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0xb8,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0xb8,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0xb8,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0xb8,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:7], v[1:3], s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:6], v[1:3], s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:6], v[1:3], s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15]    ; encoding: [0x00,0x00,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xb8,0xf2,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xb9,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xba,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0xb8,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0xb8,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_b_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0xb8,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0xb8,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x01,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v252, v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0xfc,0x62,0x00]
+0x00,0x01,0xbc,0xf0,0x01,0xfc,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[252:253], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0xfc,0x05,0x62,0x00]
+0x00,0x01,0xbc,0xf0,0xfc,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0x05,0x63,0x00]
+0x00,0x01,0xbc,0xf0,0x01,0x05,0x63,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0x05,0x77,0x00]
+0x00,0x01,0xbc,0xf0,0x01,0x05,0x77,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0x05,0x7d,0x00]
+0x00,0x01,0xbc,0xf0,0x01,0x05,0x7d,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0x05,0x82,0x00]
+0x00,0x01,0xbc,0xf0,0x01,0x05,0x82,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0x05,0x02,0x03]
+0x00,0x01,0xbc,0xf0,0x01,0x05,0x02,0x03
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0x05,0xc2,0x03]
+0x00,0x01,0xbc,0xf0,0x01,0x05,0xc2,0x03
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x02,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x3    ; encoding: [0x00,0x03,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x03,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x04,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x5    ; encoding: [0x00,0x05,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x05,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x6    ; encoding: [0x00,0x06,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x06,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:7], v[1:2], s[8:15], s[12:15] dmask:0x7    ; encoding: [0x00,0x07,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x07,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x08,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x9    ; encoding: [0x00,0x09,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x09,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xa    ; encoding: [0x00,0x0a,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0a,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xb    ; encoding: [0x00,0x0b,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0b,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xc    ; encoding: [0x00,0x0c,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0c,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xd    ; encoding: [0x00,0x0d,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0d,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xe    ; encoding: [0x00,0x0e,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x0e,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15]    ; encoding: [0x00,0x00,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x00,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x11,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x21,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xbc,0xf2,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xbd,0xf0,0x01,0x05,0x62,0x00
+
+# 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]
+0x00,0x01,0xbe,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0xbc,0xf0,0x01,0x05,0x62,0x00]
+0x00,0x41,0xbc,0xf0,0x01,0x05,0x62,0x00
+
+# CHECK: image_sample_c_lz v5, v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0xbc,0xf0,0x01,0x05,0x62,0x80]
+0x00,0x01,0xbc,0xf0,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x00,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[252:255], v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x00,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v255, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0xff,0x05,0x62,0x00]
+0x00,0x01,0x00,0xf1,0xff,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x00,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x00,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4 v[5:8], v1, ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x00,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x00,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x00,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x00,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x00,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x00,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x00,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x00,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x00,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x00,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x00,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x00,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x00,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x00,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x00,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x00,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x02,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x02,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x00,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x00,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x00,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x00,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x04,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[252:255], v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x04,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v254, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0xfe,0x05,0x62,0x00]
+0x00,0x01,0x04,0xf1,0xfe,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x04,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x04,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x04,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x04,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x04,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x04,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x04,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x04,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x04,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x04,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x04,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x04,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x04,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x04,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x04,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x04,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x04,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x04,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x06,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x06,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x04,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x04,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl v[5:8], v1, s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x04,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x04,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x10,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[252:255], v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x10,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v254, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0xfe,0x05,0x62,0x00]
+0x00,0x01,0x10,0xf1,0xfe,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x10,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x10,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x10,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x10,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x10,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x10,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x10,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x10,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x10,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x10,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x10,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x10,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x10,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x10,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x10,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x10,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x10,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x10,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x12,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x12,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x10,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x10,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l v[5:8], v1, s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x10,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x10,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x14,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x14,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[254:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0xfe,0x05,0x62,0x00]
+0x00,0x01,0x14,0xf1,0xfe,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x14,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x14,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x14,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x14,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x14,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x14,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x14,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x14,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x14,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x14,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x14,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x14,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x14,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x14,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x14,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x14,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x14,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x14,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x16,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x16,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x14,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x14,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x14,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x14,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x18,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x18,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[253:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x18,0xf1,0xfd,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x18,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x18,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x18,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x18,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x18,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x18,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x18,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x18,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x18,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x18,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x18,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x18,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x18,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x18,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x18,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x18,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x18,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x18,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x1a,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x1a,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x18,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x18,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x18,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x18,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x1c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[252:255], v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x1c,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v255, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0xff,0x05,0x62,0x00]
+0x00,0x01,0x1c,0xf1,0xff,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x1c,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x1c,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x1c,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x1c,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x1c,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x1c,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x1c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x1c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x1c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x1c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x1c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x1c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x1c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x1c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x1c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x1c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x1c,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x1c,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x1e,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x1e,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x1c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x1c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz v[5:8], v1, s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x1c,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x1c,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x20,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x20,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[254:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0xfe,0x05,0x62,0x00]
+0x00,0x01,0x20,0xf1,0xfe,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x20,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x20,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x20,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x20,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x20,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x20,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x20,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x20,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x20,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x20,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x20,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x20,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x20,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x20,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x20,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x20,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x20,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x20,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x22,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x22,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x20,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x20,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x20,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x20,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x24,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x24,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[253:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x24,0xf1,0xfd,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x24,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x24,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x24,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x24,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x24,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x24,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x24,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x24,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x24,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x24,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x24,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x24,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x24,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x24,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x24,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x24,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x24,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x24,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x26,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x26,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x24,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x24,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x24,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x24,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x30,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x30,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[253:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x30,0xf1,0xfd,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x30,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x30,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x30,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x30,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x30,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x30,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x30,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x30,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x30,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x30,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x30,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x30,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x30,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x30,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x30,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x30,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x30,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x30,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x32,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x32,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x30,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x30,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_l v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x30,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x30,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x34,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[252:255], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x34,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[253:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x34,0xf1,0xfd,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x34,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x34,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x34,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x34,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x34,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x34,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x34,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x34,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x34,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x34,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x34,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x34,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x34,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x34,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x34,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x34,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x34,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x34,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x36,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x36,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x34,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x34,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x34,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x34,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x38,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[252:255], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x38,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[252:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x38,0xf1,0xfc,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x38,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x38,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x38,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x38,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x38,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x38,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x38,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x38,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x38,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x38,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x38,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x38,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x38,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x38,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x38,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x38,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x38,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x38,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x3a,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x3a,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x38,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x38,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_b_cl v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x38,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x38,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x3c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x3c,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[254:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0xfe,0x05,0x62,0x00]
+0x00,0x01,0x3c,0xf1,0xfe,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x3c,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x3c,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x3c,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x3c,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x3c,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x3c,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x3c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x3c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x3c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x3c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x3c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x3c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x3c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x3c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x3c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x3c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x3c,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x3c,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x3e,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x3e,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x3c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x3c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_lz v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x3c,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x3c,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x40,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x40,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[254:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0xfe,0x05,0x62,0x00]
+0x00,0x01,0x40,0xf1,0xfe,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x40,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x40,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x40,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x40,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x40,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x40,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x40,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x40,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x40,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x40,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x40,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x40,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x40,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x40,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x40,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x40,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x40,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x40,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x42,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x42,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x40,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x40,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x40,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x40,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x44,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x44,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[253:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x44,0xf1,0xfd,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x44,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x44,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x44,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x44,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x44,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x44,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x44,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x44,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x44,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x44,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x44,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x44,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x44,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x44,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x44,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x44,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x44,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x44,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x46,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x46,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x44,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x44,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_cl_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x44,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x44,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x50,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x50,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[253:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x50,0xf1,0xfd,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x50,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x50,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x50,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x50,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x50,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x50,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x50,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x50,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x50,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x50,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x50,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x50,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x50,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x50,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x50,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x50,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x50,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x50,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x52,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x52,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x50,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x50,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_l_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x50,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x50,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x54,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[252:255], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x54,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[253:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x54,0xf1,0xfd,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x54,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x54,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x54,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x54,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x54,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x54,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x54,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x54,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x54,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x54,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x54,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x54,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x54,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x54,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x54,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x54,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x54,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x54,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x56,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x56,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x54,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x54,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x54,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x54,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x58,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[252:255], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x58,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[252:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x58,0xf1,0xfc,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x58,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x58,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x58,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x58,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x58,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x58,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x58,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x58,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x58,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x58,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x58,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x58,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x58,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x58,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x58,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x58,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x58,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x5a,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x5a,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x58,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x58,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_b_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x58,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x58,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x5c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[252:255], v[1:2], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x5c,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[254:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0xfe,0x05,0x62,0x00]
+0x00,0x01,0x5c,0xf1,0xfe,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x5c,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x5c,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x5c,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x5c,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x5c,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x5c,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x5c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x5c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x5c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x5c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x5c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x5c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x5c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x5c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x5c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x5c,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x5c,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x5e,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x5e,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x5c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x5c,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_lz_o v[5:8], v[1:2], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x5c,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x5c,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x60,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[252:255], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x60,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[253:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x60,0xf1,0xfd,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x60,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x60,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x60,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x60,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x60,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x60,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x60,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x60,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x60,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x60,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x60,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x60,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x60,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x60,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x60,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x60,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x60,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x62,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x62,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x60,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x60,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x60,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x60,0xf1,0x01,0x05,0x62,0x80
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x64,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[252:255], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x64,0xf1,0x01,0xfc,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[252:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x64,0xf1,0xfc,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x64,0xf1,0x01,0x05,0x63,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x64,0xf1,0x01,0x05,0x77,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x64,0xf1,0x01,0x05,0x7d,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x64,0xf1,0x01,0x05,0x82,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x64,0xf1,0x01,0x05,0x02,0x03
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x64,0xf1,0x01,0x05,0xc2,0x03
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x64,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x64,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x64,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x64,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x64,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x64,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x64,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x64,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x64,0xf1,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x64,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x64,0xf3,0x01,0x05,0x62,0x00
+
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x66,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x66,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_smax v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0x01,0x05,0x03,0x00]
-0x00,0x11,0x58,0xf0,0x01,0x05,0x03,0x00
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x64,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x64,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_smax v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0x01,0x05,0x17,0x00]
-0x00,0x11,0x58,0xf0,0x01,0x05,0x17,0x00
+# CHECK: image_gather4_c_cl_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x64,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x64,0xf1,0x01,0x05,0x62,0x80
 
-# CHECK: image_atomic_smax v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x58,0xf0,0x01,0x05,0x1d,0x00]
-0x00,0x11,0x58,0xf0,0x01,0x05,0x1d,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x70,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_smax v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x58,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x13,0x58,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[252:255], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x70,0xf1,0x01,0xfc,0x62,0x00
 
-# CHECK: image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x58,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x31,0x58,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[252:254], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x70,0xf1,0xfc,0x05,0x62,0x00
 
-# CHECK: image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x58,0xf2,0x01,0x05,0x02,0x00]
-0x00,0x11,0x58,0xf2,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x70,0xf1,0x01,0x05,0x63,0x00
 
-# CHECK: image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x5a,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x5a,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x70,0xf1,0x01,0x05,0x77,0x00
 
-# CHECK: image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x58,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x51,0x58,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x70,0xf1,0x01,0x05,0x7d,0x00
 
-# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x5c,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x70,0xf1,0x01,0x05,0x82,0x00
 
-# CHECK: image_atomic_umax v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0xfc,0x02,0x00]
-0x00,0x11,0x5c,0xf0,0x01,0xfc,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x70,0xf1,0x01,0x05,0x02,0x03
 
-# CHECK: image_atomic_umax v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0xff,0x05,0x02,0x00]
-0x00,0x11,0x5c,0xf0,0xff,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x70,0xf1,0x01,0x05,0xc2,0x03
 
-# CHECK: image_atomic_umax v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x03,0x00]
-0x00,0x11,0x5c,0xf0,0x01,0x05,0x03,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x70,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x70,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_umax v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x17,0x00]
-0x00,0x11,0x5c,0xf0,0x01,0x05,0x17,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x70,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x70,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_umax v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x1d,0x00]
-0x00,0x11,0x5c,0xf0,0x01,0x05,0x1d,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x70,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x70,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_umax v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x5c,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x13,0x5c,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x70,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x5c,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x31,0x5c,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x70,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x70,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x5c,0xf2,0x01,0x05,0x02,0x00]
-0x00,0x11,0x5c,0xf2,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x70,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x70,0xf3,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x5e,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x5e,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x72,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x72,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x5c,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x51,0x5c,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x70,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x70,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x60,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_l_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x70,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x70,0xf1,0x01,0x05,0x62,0x80
 
-# CHECK: image_atomic_and v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0xfc,0x02,0x00]
-0x00,0x11,0x60,0xf0,0x01,0xfc,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x74,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_and v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0xff,0x05,0x02,0x00]
-0x00,0x11,0x60,0xf0,0xff,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[252:255], v[1:4], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x74,0xf1,0x01,0xfc,0x62,0x00
 
-# CHECK: image_atomic_and v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0x05,0x03,0x00]
-0x00,0x11,0x60,0xf0,0x01,0x05,0x03,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[252:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0xfc,0x05,0x62,0x00]
+0x00,0x01,0x74,0xf1,0xfc,0x05,0x62,0x00
 
-# CHECK: image_atomic_and v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0x05,0x17,0x00]
-0x00,0x11,0x60,0xf0,0x01,0x05,0x17,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x74,0xf1,0x01,0x05,0x63,0x00
 
-# CHECK: image_atomic_and v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x60,0xf0,0x01,0x05,0x1d,0x00]
-0x00,0x11,0x60,0xf0,0x01,0x05,0x1d,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x74,0xf1,0x01,0x05,0x77,0x00
 
-# CHECK: image_atomic_and v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x60,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x13,0x60,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x74,0xf1,0x01,0x05,0x7d,0x00
 
-# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x60,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x31,0x60,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x74,0xf1,0x01,0x05,0x82,0x00
 
-# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x60,0xf2,0x01,0x05,0x02,0x00]
-0x00,0x11,0x60,0xf2,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x74,0xf1,0x01,0x05,0x02,0x03
 
-# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x62,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x62,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x74,0xf1,0x01,0x05,0xc2,0x03
 
-# CHECK: image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x60,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x51,0x60,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x74,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x74,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x64,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x74,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x74,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0xfc,0x02,0x00]
-0x00,0x11,0x64,0xf0,0x01,0xfc,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x74,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x74,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0xff,0x05,0x02,0x00]
-0x00,0x11,0x64,0xf0,0xff,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x74,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x74,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0x05,0x03,0x00]
-0x00,0x11,0x64,0xf0,0x01,0x05,0x03,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x74,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x74,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0x05,0x17,0x00]
-0x00,0x11,0x64,0xf0,0x01,0x05,0x17,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x74,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x74,0xf3,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x64,0xf0,0x01,0x05,0x1d,0x00]
-0x00,0x11,0x64,0xf0,0x01,0x05,0x1d,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x76,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x76,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x64,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x13,0x64,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x74,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x74,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x64,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x31,0x64,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x74,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x74,0xf1,0x01,0x05,0x62,0x80
 
-# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x64,0xf2,0x01,0x05,0x02,0x00]
-0x00,0x11,0x64,0xf2,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x78,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x66,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x66,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[252:255], v[1:4], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x78,0xf1,0x01,0xfc,0x62,0x00
 
-# CHECK: image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x64,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x51,0x64,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[248:251], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0xf8,0x05,0x62,0x00]
+0x00,0x01,0x78,0xf1,0xf8,0x05,0x62,0x00
 
-# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x68,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x78,0xf1,0x01,0x05,0x63,0x00
 
-# CHECK: image_atomic_xor v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0xfc,0x02,0x00]
-0x00,0x11,0x68,0xf0,0x01,0xfc,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x78,0xf1,0x01,0x05,0x77,0x00
 
-# CHECK: image_atomic_xor v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0xff,0x05,0x02,0x00]
-0x00,0x11,0x68,0xf0,0xff,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x78,0xf1,0x01,0x05,0x7d,0x00
 
-# CHECK: image_atomic_xor v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0x05,0x03,0x00]
-0x00,0x11,0x68,0xf0,0x01,0x05,0x03,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x78,0xf1,0x01,0x05,0x82,0x00
 
-# CHECK: image_atomic_xor v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0x05,0x17,0x00]
-0x00,0x11,0x68,0xf0,0x01,0x05,0x17,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x78,0xf1,0x01,0x05,0x02,0x03
 
-# CHECK: image_atomic_xor v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x68,0xf0,0x01,0x05,0x1d,0x00]
-0x00,0x11,0x68,0xf0,0x01,0x05,0x1d,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x78,0xf1,0x01,0x05,0xc2,0x03
 
-# CHECK: image_atomic_xor v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x68,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x13,0x68,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x78,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x78,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x68,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x31,0x68,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x78,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x78,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x68,0xf2,0x01,0x05,0x02,0x00]
-0x00,0x11,0x68,0xf2,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x78,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x78,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x6a,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x6a,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x78,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x78,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x68,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x51,0x68,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x78,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x78,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x6c,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x78,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x78,0xf3,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_inc v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0xfc,0x02,0x00]
-0x00,0x11,0x6c,0xf0,0x01,0xfc,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x7a,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x7a,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_inc v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0xff,0x05,0x02,0x00]
-0x00,0x11,0x6c,0xf0,0xff,0x05,0x02,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x78,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x78,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_inc v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x03,0x00]
-0x00,0x11,0x6c,0xf0,0x01,0x05,0x03,0x00
+# CHECK: image_gather4_c_b_cl_o v[5:8], v[1:4], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x78,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x78,0xf1,0x01,0x05,0x62,0x80
 
-# CHECK: image_atomic_inc v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x17,0x00]
-0x00,0x11,0x6c,0xf0,0x01,0x05,0x17,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x7c,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_inc v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x1d,0x00]
-0x00,0x11,0x6c,0xf0,0x01,0x05,0x1d,0x00
+# CHECK: image_gather4_c_lz_o v[252:255], v[1:3], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0xfc,0x62,0x00]
+0x00,0x01,0x7c,0xf1,0x01,0xfc,0x62,0x00
 
-# CHECK: image_atomic_inc v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x6c,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x13,0x6c,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[253:255], s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0xfd,0x05,0x62,0x00]
+0x00,0x01,0x7c,0xf1,0xfd,0x05,0x62,0x00
 
-# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x6c,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x31,0x6c,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[12:19], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0x05,0x63,0x00]
+0x00,0x01,0x7c,0xf1,0x01,0x05,0x63,0x00
 
-# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x6c,0xf2,0x01,0x05,0x02,0x00]
-0x00,0x11,0x6c,0xf2,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[92:99], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0x05,0x77,0x00]
+0x00,0x01,0x7c,0xf1,0x01,0x05,0x77,0x00
 
-# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x6e,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x6e,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], ttmp[4:11], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0x05,0x7d,0x00]
+0x00,0x01,0x7c,0xf1,0x01,0x05,0x7d,0x00
 
-# CHECK: image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x6c,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x51,0x6c,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[16:19] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0x05,0x82,0x00]
+0x00,0x01,0x7c,0xf1,0x01,0x05,0x82,0x00
 
-# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x70,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[96:99] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0x05,0x02,0x03]
+0x00,0x01,0x7c,0xf1,0x01,0x05,0x02,0x03
 
-# CHECK: image_atomic_dec v252, v1, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0xfc,0x02,0x00]
-0x00,0x11,0x70,0xf0,0x01,0xfc,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], ttmp[8:11] dmask:0x1    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0x05,0xc2,0x03]
+0x00,0x01,0x7c,0xf1,0x01,0x05,0xc2,0x03
 
-# CHECK: image_atomic_dec v5, v255, s[8:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0xff,0x05,0x02,0x00]
-0x00,0x11,0x70,0xf0,0xff,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x2    ; encoding: [0x00,0x02,0x7c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x02,0x7c,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_dec v5, v1, s[12:19] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0x05,0x03,0x00]
-0x00,0x11,0x70,0xf0,0x01,0x05,0x03,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x4    ; encoding: [0x00,0x04,0x7c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x04,0x7c,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_dec v5, v1, s[92:99] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0x05,0x17,0x00]
-0x00,0x11,0x70,0xf0,0x01,0x05,0x17,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x8    ; encoding: [0x00,0x08,0x7c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x08,0x7c,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_dec v5, v1, ttmp[4:11] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x70,0xf0,0x01,0x05,0x1d,0x00]
-0x00,0x11,0x70,0xf0,0x01,0x05,0x1d,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x7c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x11,0x7c,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_dec v[5:6], v1, s[8:15] dmask:0x3 unorm    ; encoding: [0x00,0x13,0x70,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x13,0x70,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 glc    ; encoding: [0x00,0x21,0x7c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x21,0x7c,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm glc    ; encoding: [0x00,0x31,0x70,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x31,0x70,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x7c,0xf3,0x01,0x05,0x62,0x00]
+0x00,0x01,0x7c,0xf3,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm slc    ; encoding: [0x00,0x11,0x70,0xf2,0x01,0x05,0x02,0x00]
-0x00,0x11,0x70,0xf2,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x7e,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x7e,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm lwe    ; encoding: [0x00,0x11,0x72,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x11,0x72,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 da    ; encoding: [0x00,0x41,0x7c,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x41,0x7c,0xf1,0x01,0x05,0x62,0x00
 
-# CHECK: image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm da    ; encoding: [0x00,0x51,0x70,0xf0,0x01,0x05,0x02,0x00]
-0x00,0x51,0x70,0xf0,0x01,0x05,0x02,0x00
+# CHECK: image_gather4_c_lz_o v[5:8], v[1:3], s[8:15], s[12:15] dmask:0x1 d16    ; encoding: [0x00,0x01,0x7c,0xf1,0x01,0x05,0x62,0x80]
+0x00,0x01,0x7c,0xf1,0x01,0x05,0x62,0x80
 
 # CHECK: image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x1    ; encoding: [0x00,0x01,0x80,0xf1,0x01,0x05,0x62,0x00]
 0x00,0x01,0x80,0xf1,0x01,0x05,0x62,0x00
@@ -3843,6 +6630,9 @@
 # CHECK: image_get_lod v[5:8], v1, s[8:15], s[12:15] dmask:0xf    ; encoding: [0x00,0x0f,0x80,0xf1,0x01,0x05,0x62,0x00]
 0x00,0x0f,0x80,0xf1,0x01,0x05,0x62,0x00
 
+# CHECK: image_get_lod v5, v1, s[8:15], s[12:15]    ; encoding: [0x00,0x00,0x80,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x00,0x80,0xf1,0x01,0x05,0x62,0x00
+
 # CHECK: image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x1 unorm    ; encoding: [0x00,0x11,0x80,0xf1,0x01,0x05,0x62,0x00]
 0x00,0x11,0x80,0xf1,0x01,0x05,0x62,0x00
 
@@ -3852,6 +6642,9 @@
 # CHECK: image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x1 slc    ; encoding: [0x00,0x01,0x80,0xf3,0x01,0x05,0x62,0x00]
 0x00,0x01,0x80,0xf3,0x01,0x05,0x62,0x00
 
+# CHECK: image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x1 tfe    ; encoding: [0x00,0x01,0x81,0xf1,0x01,0x05,0x62,0x00]
+0x00,0x01,0x81,0xf1,0x01,0x05,0x62,0x00
+
 # CHECK: image_get_lod v5, v1, s[8:15], s[12:15] dmask:0x1 lwe    ; encoding: [0x00,0x01,0x82,0xf1,0x01,0x05,0x62,0x00]
 0x00,0x01,0x82,0xf1,0x01,0x05,0x62,0x00
 
@@ -19773,6 +22566,66 @@
 # CHECK: s_setvskip s1, 0x3f717273    ; encoding: [0x01,0xff,0x10,0xbf,0x73,0x72,0x71,0x3f]
 0x01,0xff,0x10,0xbf,0x73,0x72,0x71,0x3f
 
+# CHECK: s_set_gpr_idx_on s1, gpr_idx()    ; encoding: [0x01,0x00,0x11,0xbf]
+0x01,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on s101, gpr_idx()    ; encoding: [0x65,0x00,0x11,0xbf]
+0x65,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on flat_scratch_lo, gpr_idx()    ; encoding: [0x66,0x00,0x11,0xbf]
+0x66,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on flat_scratch_hi, gpr_idx()    ; encoding: [0x67,0x00,0x11,0xbf]
+0x67,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on vcc_lo, gpr_idx()    ; encoding: [0x6a,0x00,0x11,0xbf]
+0x6a,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on vcc_hi, gpr_idx()    ; encoding: [0x6b,0x00,0x11,0xbf]
+0x6b,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on tba_lo, gpr_idx()    ; encoding: [0x6c,0x00,0x11,0xbf]
+0x6c,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on tba_hi, gpr_idx()    ; encoding: [0x6d,0x00,0x11,0xbf]
+0x6d,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on tma_lo, gpr_idx()    ; encoding: [0x6e,0x00,0x11,0xbf]
+0x6e,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on tma_hi, gpr_idx()    ; encoding: [0x6f,0x00,0x11,0xbf]
+0x6f,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on ttmp11, gpr_idx()    ; encoding: [0x7b,0x00,0x11,0xbf]
+0x7b,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on m0, gpr_idx()    ; encoding: [0x7c,0x00,0x11,0xbf]
+0x7c,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on 0, gpr_idx()    ; encoding: [0x80,0x00,0x11,0xbf]
+0x80,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on -1, gpr_idx()    ; encoding: [0xc1,0x00,0x11,0xbf]
+0xc1,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on 0.5, gpr_idx()    ; encoding: [0xf0,0x00,0x11,0xbf]
+0xf0,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on -4.0, gpr_idx()    ; encoding: [0xf7,0x00,0x11,0xbf]
+0xf7,0x00,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on 0xaf123456, gpr_idx()    ; encoding: [0xff,0x00,0x11,0xbf,0x56,0x34,0x12,0xaf]
+0xff,0x00,0x11,0xbf,0x56,0x34,0x12,0xaf
+
+# CHECK: s_set_gpr_idx_on 0x3f717273, gpr_idx()    ; encoding: [0xff,0x00,0x11,0xbf,0x73,0x72,0x71,0x3f]
+0xff,0x00,0x11,0xbf,0x73,0x72,0x71,0x3f
+
+# CHECK: s_set_gpr_idx_on s1, gpr_idx(SRC0)    ; encoding: [0x01,0x01,0x11,0xbf]
+0x01,0x01,0x11,0xbf
+
+# CHECK: s_set_gpr_idx_on s1, gpr_idx(SRC0,SRC1,SRC2,DST)    ; encoding: [0x01,0x0f,0x11,0xbf]
+0x01,0x0f,0x11,0xbf
+
 # CHECK: s_cmp_eq_u64 s[2:3], s[4:5]    ; encoding: [0x02,0x04,0x12,0xbf]
 0x02,0x04,0x12,0xbf
 
@@ -20667,6 +23520,135 @@
 # CHECK: s_mulk_i32 s5, 0xc1d1    ; encoding: [0xd1,0xc1,0x85,0xb7]
 0xd1,0xc1,0x85,0xb7
 
+# CHECK: s_cbranch_i_fork s[2:3], 12609    ; encoding: [0x41,0x31,0x02,0xb8]
+0x41,0x31,0x02,0xb8
+
+# CHECK: s_cbranch_i_fork s[4:5], 12609    ; encoding: [0x41,0x31,0x04,0xb8]
+0x41,0x31,0x04,0xb8
+
+# CHECK: s_cbranch_i_fork s[100:101], 12609    ; encoding: [0x41,0x31,0x64,0xb8]
+0x41,0x31,0x64,0xb8
+
+# CHECK: s_cbranch_i_fork flat_scratch, 12609    ; encoding: [0x41,0x31,0x66,0xb8]
+0x41,0x31,0x66,0xb8
+
+# CHECK: s_cbranch_i_fork vcc, 12609    ; encoding: [0x41,0x31,0x6a,0xb8]
+0x41,0x31,0x6a,0xb8
+
+# CHECK: s_cbranch_i_fork tba, 12609    ; encoding: [0x41,0x31,0x6c,0xb8]
+0x41,0x31,0x6c,0xb8
+
+# CHECK: s_cbranch_i_fork tma, 12609    ; encoding: [0x41,0x31,0x6e,0xb8]
+0x41,0x31,0x6e,0xb8
+
+# CHECK: s_cbranch_i_fork ttmp[10:11], 12609    ; encoding: [0x41,0x31,0x7a,0xb8]
+0x41,0x31,0x7a,0xb8
+
+# CHECK: s_cbranch_i_fork exec, 12609    ; encoding: [0x41,0x31,0x7e,0xb8]
+0x41,0x31,0x7e,0xb8
+
+# CHECK: s_cbranch_i_fork s[2:3], 49617    ; encoding: [0xd1,0xc1,0x02,0xb8]
+0xd1,0xc1,0x02,0xb8
+
+# CHECK: s_getreg_b32 s5, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0x85,0xb8]
+0x41,0x31,0x85,0xb8
+
+# CHECK: s_getreg_b32 s101, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xe5,0xb8]
+0x41,0x31,0xe5,0xb8
+
+# CHECK: s_getreg_b32 flat_scratch_lo, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xe6,0xb8]
+0x41,0x31,0xe6,0xb8
+
+# CHECK: s_getreg_b32 flat_scratch_hi, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xe7,0xb8]
+0x41,0x31,0xe7,0xb8
+
+# CHECK: s_getreg_b32 vcc_lo, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xea,0xb8]
+0x41,0x31,0xea,0xb8
+
+# CHECK: s_getreg_b32 vcc_hi, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xeb,0xb8]
+0x41,0x31,0xeb,0xb8
+
+# CHECK: s_getreg_b32 tba_lo, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xec,0xb8]
+0x41,0x31,0xec,0xb8
+
+# CHECK: s_getreg_b32 tba_hi, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xed,0xb8]
+0x41,0x31,0xed,0xb8
+
+# CHECK: s_getreg_b32 tma_lo, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xee,0xb8]
+0x41,0x31,0xee,0xb8
+
+# CHECK: s_getreg_b32 tma_hi, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xef,0xb8]
+0x41,0x31,0xef,0xb8
+
+# CHECK: s_getreg_b32 ttmp11, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xfb,0xb8]
+0x41,0x31,0xfb,0xb8
+
+# CHECK: s_getreg_b32 m0, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xfc,0xb8]
+0x41,0x31,0xfc,0xb8
+
+# CHECK: s_getreg_b32 exec_lo, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xfe,0xb8]
+0x41,0x31,0xfe,0xb8
+
+# CHECK: s_getreg_b32 exec_hi, hwreg(HW_REG_MODE, 5, 7)    ; encoding: [0x41,0x31,0xff,0xb8]
+0x41,0x31,0xff,0xb8
+
+# CHECK: s_getreg_b32 s5, hwreg(17, 7, 25)    ; encoding: [0xd1,0xc1,0x85,0xb8]
+0xd1,0xc1,0x85,0xb8
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), s1    ; encoding: [0x41,0x31,0x01,0xb9]
+0x41,0x31,0x01,0xb9
+
+# CHECK: s_setreg_b32 hwreg(17, 7, 25), s1    ; encoding: [0xd1,0xc1,0x01,0xb9]
+0xd1,0xc1,0x01,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), s101    ; encoding: [0x41,0x31,0x65,0xb9]
+0x41,0x31,0x65,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), flat_scratch_lo    ; encoding: [0x41,0x31,0x66,0xb9]
+0x41,0x31,0x66,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), flat_scratch_hi    ; encoding: [0x41,0x31,0x67,0xb9]
+0x41,0x31,0x67,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), vcc_lo    ; encoding: [0x41,0x31,0x6a,0xb9]
+0x41,0x31,0x6a,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), vcc_hi    ; encoding: [0x41,0x31,0x6b,0xb9]
+0x41,0x31,0x6b,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), tba_lo    ; encoding: [0x41,0x31,0x6c,0xb9]
+0x41,0x31,0x6c,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), tba_hi    ; encoding: [0x41,0x31,0x6d,0xb9]
+0x41,0x31,0x6d,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), tma_lo    ; encoding: [0x41,0x31,0x6e,0xb9]
+0x41,0x31,0x6e,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), tma_hi    ; encoding: [0x41,0x31,0x6f,0xb9]
+0x41,0x31,0x6f,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), ttmp11    ; encoding: [0x41,0x31,0x7b,0xb9]
+0x41,0x31,0x7b,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), m0    ; encoding: [0x41,0x31,0x7c,0xb9]
+0x41,0x31,0x7c,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), exec_lo    ; encoding: [0x41,0x31,0x7e,0xb9]
+0x41,0x31,0x7e,0xb9
+
+# CHECK: s_setreg_b32 hwreg(HW_REG_MODE, 5, 7), exec_hi    ; encoding: [0x41,0x31,0x7f,0xb9]
+0x41,0x31,0x7f,0xb9
+
+# CHECK: s_setreg_imm32_b32 hwreg(HW_REG_MODE, 5, 7), 0x11213141    ; encoding: [0x41,0x31,0x00,0xba,0x41,0x31,0x21,0x11]
+0x41,0x31,0x00,0xba,0x41,0x31,0x21,0x11
+
+# CHECK: s_setreg_imm32_b32 hwreg(17, 7, 25), 0x11213141    ; encoding: [0xd1,0xc1,0x00,0xba,0x41,0x31,0x21,0x11]
+0xd1,0xc1,0x00,0xba,0x41,0x31,0x21,0x11
+
+# CHECK: s_setreg_imm32_b32 hwreg(HW_REG_MODE, 5, 7), 0xa1b1c1d1    ; encoding: [0x41,0x31,0x00,0xba,0xd1,0xc1,0xb1,0xa1]
+0x41,0x31,0x00,0xba,0xd1,0xc1,0xb1,0xa1
+
 # CHECK: s_nop 0x3141    ; encoding: [0x41,0x31,0x80,0xbf]
 0x41,0x31,0x80,0xbf
 
@@ -20730,6 +23712,12 @@
 # CHECK: s_setkill 0xc1d1    ; encoding: [0xd1,0xc1,0x8b,0xbf]
 0xd1,0xc1,0x8b,0xbf
 
+# CHECK: s_waitcnt vmcnt(1) expcnt(4) lgkmcnt(1)    ; encoding: [0x41,0x31,0x8c,0xbf]
+0x41,0x31,0x8c,0xbf
+
+# CHECK: s_waitcnt vmcnt(1) expcnt(5) lgkmcnt(1)    ; encoding: [0xd1,0xc1,0x8c,0xbf]
+0xd1,0xc1,0x8c,0xbf
+
 # CHECK: s_sethalt 0x3141    ; encoding: [0x41,0x31,0x8d,0xbf]
 0x41,0x31,0x8d,0xbf
 
@@ -20748,6 +23736,18 @@
 # CHECK: s_setprio 0xc1d1    ; encoding: [0xd1,0xc1,0x8f,0xbf]
 0xd1,0xc1,0x8f,0xbf
 
+# CHECK: s_sendmsg 12609    ; encoding: [0x41,0x31,0x90,0xbf]
+0x41,0x31,0x90,0xbf
+
+# CHECK: s_sendmsg 49617    ; encoding: [0xd1,0xc1,0x90,0xbf]
+0xd1,0xc1,0x90,0xbf
+
+# CHECK: s_sendmsghalt 12609    ; encoding: [0x41,0x31,0x91,0xbf]
+0x41,0x31,0x91,0xbf
+
+# CHECK: s_sendmsghalt 49617    ; encoding: [0xd1,0xc1,0x91,0xbf]
+0xd1,0xc1,0x91,0xbf
+
 # CHECK: s_trap 0x3141    ; encoding: [0x41,0x31,0x92,0xbf]
 0x41,0x31,0x92,0xbf
 
@@ -20802,6 +23802,42 @@
 # CHECK: s_set_gpr_idx_off    ; encoding: [0x00,0x00,0x9c,0xbf]
 0x00,0x00,0x9c,0xbf
 
+# CHECK: s_set_gpr_idx_mode gpr_idx()    ; encoding: [0x00,0x00,0x9d,0xbf]
+0x00,0x00,0x9d,0xbf
+
+# CHECK: s_set_gpr_idx_mode gpr_idx(SRC0)    ; encoding: [0x01,0x00,0x9d,0xbf]
+0x01,0x00,0x9d,0xbf
+
+# CHECK: s_set_gpr_idx_mode gpr_idx(SRC0,SRC1,SRC2,DST)    ; encoding: [0x0f,0x00,0x9d,0xbf]
+0x0f,0x00,0x9d,0xbf
+
+# CHECK: v_interp_p1_f32_e32 v5, v1, attr0.x    ; encoding: [0x01,0x00,0x14,0xd4]
+0x01,0x00,0x14,0xd4
+
+# CHECK: v_interp_p1_f32_e32 v255, v1, attr0.x    ; encoding: [0x01,0x00,0xfc,0xd7]
+0x01,0x00,0xfc,0xd7
+
+# CHECK: v_interp_p1_f32_e32 v5, v255, attr0.x    ; encoding: [0xff,0x00,0x14,0xd4]
+0xff,0x00,0x14,0xd4
+
+# CHECK: v_interp_p1_f32_e32 v5, v1, attr1.x    ; encoding: [0x01,0x04,0x14,0xd4]
+0x01,0x04,0x14,0xd4
+
+# CHECK: v_interp_p1_f32_e32 v5, v1, attr31.x    ; encoding: [0x01,0x7c,0x14,0xd4]
+0x01,0x7c,0x14,0xd4
+
+# CHECK: v_interp_p1_f32_e32 v5, v1, attr32.x    ; encoding: [0x01,0x80,0x14,0xd4]
+0x01,0x80,0x14,0xd4
+
+# CHECK: v_interp_p1_f32_e32 v5, v1, attr0.y    ; encoding: [0x01,0x01,0x14,0xd4]
+0x01,0x01,0x14,0xd4
+
+# CHECK: v_interp_p1_f32_e32 v5, v1, attr0.z    ; encoding: [0x01,0x02,0x14,0xd4]
+0x01,0x02,0x14,0xd4
+
+# CHECK: v_interp_p1_f32_e32 v5, v1, attr0.w    ; encoding: [0x01,0x03,0x14,0xd4]
+0x01,0x03,0x14,0xd4
+
 # CHECK: v_interp_p1_f32_e64 v5, v2, attr0.x    ; encoding: [0x05,0x00,0x70,0xd2,0x00,0x04,0x02,0x00]
 0x05,0x00,0x70,0xd2,0x00,0x04,0x02,0x00
 
@@ -20847,6 +23883,33 @@
 # CHECK: v_interp_p1_f32_e64 v5, v2, attr0.x div:2    ; encoding: [0x05,0x00,0x70,0xd2,0x00,0x04,0x02,0x18]
 0x05,0x00,0x70,0xd2,0x00,0x04,0x02,0x18
 
+# CHECK: v_interp_p2_f32_e32 v5, v1, attr0.x    ; encoding: [0x01,0x00,0x15,0xd4]
+0x01,0x00,0x15,0xd4
+
+# CHECK: v_interp_p2_f32_e32 v255, v1, attr0.x    ; encoding: [0x01,0x00,0xfd,0xd7]
+0x01,0x00,0xfd,0xd7
+
+# CHECK: v_interp_p2_f32_e32 v5, v255, attr0.x    ; encoding: [0xff,0x00,0x15,0xd4]
+0xff,0x00,0x15,0xd4
+
+# CHECK: v_interp_p2_f32_e32 v5, v1, attr1.x    ; encoding: [0x01,0x04,0x15,0xd4]
+0x01,0x04,0x15,0xd4
+
+# CHECK: v_interp_p2_f32_e32 v5, v1, attr31.x    ; encoding: [0x01,0x7c,0x15,0xd4]
+0x01,0x7c,0x15,0xd4
+
+# CHECK: v_interp_p2_f32_e32 v5, v1, attr32.x    ; encoding: [0x01,0x80,0x15,0xd4]
+0x01,0x80,0x15,0xd4
+
+# CHECK: v_interp_p2_f32_e32 v5, v1, attr0.y    ; encoding: [0x01,0x01,0x15,0xd4]
+0x01,0x01,0x15,0xd4
+
+# CHECK: v_interp_p2_f32_e32 v5, v1, attr0.z    ; encoding: [0x01,0x02,0x15,0xd4]
+0x01,0x02,0x15,0xd4
+
+# CHECK: v_interp_p2_f32_e32 v5, v1, attr0.w    ; encoding: [0x01,0x03,0x15,0xd4]
+0x01,0x03,0x15,0xd4
+
 # CHECK: v_interp_p2_f32_e64 v5, v2, attr0.x    ; encoding: [0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x00]
 0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x00
 
@@ -20892,6 +23955,36 @@
 # CHECK: v_interp_p2_f32_e64 v5, v2, attr0.x div:2    ; encoding: [0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x18]
 0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x18
 
+# CHECK: v_interp_mov_f32_e32 v5, p10, attr0.x    ; encoding: [0x00,0x00,0x16,0xd4]
+0x00,0x00,0x16,0xd4
+
+# CHECK: v_interp_mov_f32_e32 v255, p10, attr0.x    ; encoding: [0x00,0x00,0xfe,0xd7]
+0x00,0x00,0xfe,0xd7
+
+# CHECK: v_interp_mov_f32_e32 v5, p20, attr0.x    ; encoding: [0x01,0x00,0x16,0xd4]
+0x01,0x00,0x16,0xd4
+
+# CHECK: v_interp_mov_f32_e32 v5, p0, attr0.x    ; encoding: [0x02,0x00,0x16,0xd4]
+0x02,0x00,0x16,0xd4
+
+# CHECK: v_interp_mov_f32_e32 v5, p10, attr1.x    ; encoding: [0x00,0x04,0x16,0xd4]
+0x00,0x04,0x16,0xd4
+
+# CHECK: v_interp_mov_f32_e32 v5, p10, attr31.x    ; encoding: [0x00,0x7c,0x16,0xd4]
+0x00,0x7c,0x16,0xd4
+
+# CHECK: v_interp_mov_f32_e32 v5, p10, attr32.x    ; encoding: [0x00,0x80,0x16,0xd4]
+0x00,0x80,0x16,0xd4
+
+# CHECK: v_interp_mov_f32_e32 v5, p10, attr0.y    ; encoding: [0x00,0x01,0x16,0xd4]
+0x00,0x01,0x16,0xd4
+
+# CHECK: v_interp_mov_f32_e32 v5, p10, attr0.z    ; encoding: [0x00,0x02,0x16,0xd4]
+0x00,0x02,0x16,0xd4
+
+# CHECK: v_interp_mov_f32_e32 v5, p10, attr0.w    ; encoding: [0x00,0x03,0x16,0xd4]
+0x00,0x03,0x16,0xd4
+
 # CHECK: v_interp_mov_f32_e64 v5, p10, attr0.x    ; encoding: [0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x00]
 0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x00
 
@@ -20934,6 +24027,12 @@
 # CHECK: v_interp_mov_f32_e64 v5, p10, attr0.x div:2    ; encoding: [0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x18]
 0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x18
 
+# CHECK: v_nop    ; encoding: [0x00,0x00,0x00,0x7e]
+0x00,0x00,0x00,0x7e
+
+# CHECK: v_nop    ; encoding: [0x00,0x00,0x40,0xd1,0x00,0x00,0x00,0x00]
+0x00,0x00,0x40,0xd1,0x00,0x00,0x00,0x00
+
 # CHECK: v_mov_b32_e32 v5, v1    ; encoding: [0x01,0x03,0x0a,0x7e]
 0x01,0x03,0x0a,0x7e
 
@@ -27930,6 +31029,12 @@
 # CHECK: v_frexp_mant_f32_e64 v5, v1 div:2    ; encoding: [0x05,0x00,0x74,0xd1,0x01,0x01,0x00,0x18]
 0x05,0x00,0x74,0xd1,0x01,0x01,0x00,0x18
 
+# CHECK: v_clrexcp    ; encoding: [0x00,0x6a,0x00,0x7e]
+0x00,0x6a,0x00,0x7e
+
+# CHECK: v_clrexcp    ; encoding: [0x00,0x00,0x75,0xd1,0x00,0x00,0x00,0x00]
+0x00,0x00,0x75,0xd1,0x00,0x00,0x00,0x00
+
 # CHECK: v_movreld_b32_e32 v5, v1    ; encoding: [0x01,0x6d,0x0a,0x7e]
 0x01,0x6d,0x0a,0x7e
 


        


More information about the llvm-commits mailing list