blob: e8f1f6ee04ac8d2740e6439dd2481c96f6b025e6 [file] [log] [blame]
// RUN: llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck %s
image_load v5, v1, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v252, v1, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0xfc,0x02,0x00]
image_load v5, v252, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0xfc,0x05,0x02,0x00]
image_load v5, v1, s[12:19] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x03,0x00]
image_load v5, v1, s[92:99] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x17,0x00]
image_load v5, v1, ttmp[4:11] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x1d,0x00]
image_load v5, v1, s[8:15] dmask:0x2
// CHECK: [0x00,0x02,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:6], v1, s[8:15] dmask:0x3
// CHECK: [0x00,0x03,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x4
// CHECK: [0x00,0x04,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:6], v1, s[8:15] dmask:0x5
// CHECK: [0x00,0x05,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:6], v1, s[8:15] dmask:0x6
// CHECK: [0x00,0x06,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:7], v1, s[8:15] dmask:0x7
// CHECK: [0x00,0x07,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x8
// CHECK: [0x00,0x08,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:6], v1, s[8:15] dmask:0x9
// CHECK: [0x00,0x09,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:6], v1, s[8:15] dmask:0xa
// CHECK: [0x00,0x0a,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:7], v1, s[8:15] dmask:0xb
// CHECK: [0x00,0x0b,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:6], v1, s[8:15] dmask:0xc
// CHECK: [0x00,0x0c,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:7], v1, s[8:15] dmask:0xd
// CHECK: [0x00,0x0d,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:7], v1, s[8:15] dmask:0xe
// CHECK: [0x00,0x0e,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v[5:8], v1, s[8:15] dmask:0xf
// CHECK: [0x00,0x0f,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x0
// CHECK: [0x00,0x00,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v[1:3], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v[1:4], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x00,0xf2,0x01,0x05,0x02,0x00]
image_load v[5:6], v1, s[8:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x01,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x02,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v1, s[8:15] dmask:0x1 d16
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x80]
image_load_mip v5, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v252, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0xfc,0x02,0x00]
image_load_mip v5, v[252:253], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0xfc,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[12:19] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0x05,0x03,0x00]
image_load_mip v5, v[1:2], s[92:99] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0x05,0x17,0x00]
image_load_mip v5, v[1:2], ttmp[4:11] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0x05,0x1d,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x2
// CHECK: [0x00,0x02,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:6], v[1:2], s[8:15] dmask:0x3
// CHECK: [0x00,0x03,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x4
// CHECK: [0x00,0x04,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:6], v[1:2], s[8:15] dmask:0x5
// CHECK: [0x00,0x05,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:6], v[1:2], s[8:15] dmask:0x6
// CHECK: [0x00,0x06,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:7], v[1:2], s[8:15] dmask:0x7
// CHECK: [0x00,0x07,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x8
// CHECK: [0x00,0x08,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:6], v[1:2], s[8:15] dmask:0x9
// CHECK: [0x00,0x09,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:6], v[1:2], s[8:15] dmask:0xa
// CHECK: [0x00,0x0a,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:7], v[1:2], s[8:15] dmask:0xb
// CHECK: [0x00,0x0b,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:6], v[1:2], s[8:15] dmask:0xc
// CHECK: [0x00,0x0c,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:7], v[1:2], s[8:15] dmask:0xd
// CHECK: [0x00,0x0d,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:7], v[1:2], s[8:15] dmask:0xe
// CHECK: [0x00,0x0e,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v[5:8], v[1:2], s[8:15] dmask:0xf
// CHECK: [0x00,0x0f,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x0
// CHECK: [0x00,0x00,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:3], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:4], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x04,0xf2,0x01,0x05,0x02,0x00]
image_load_mip v[5:6], v[1:2], s[8:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x05,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x06,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x04,0xf0,0x01,0x05,0x02,0x00]
image_load_mip v5, v[1:2], s[8:15] dmask:0x1 d16
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0x05,0x02,0x80]
image_load_pck v5, v1, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v252, v1, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0x01,0xfc,0x02,0x00]
image_load_pck v5, v252, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0xfc,0x05,0x02,0x00]
image_load_pck v5, v1, s[12:19] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0x01,0x05,0x03,0x00]
image_load_pck v5, v1, s[92:99] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0x01,0x05,0x17,0x00]
image_load_pck v5, v1, ttmp[4:11] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0x01,0x05,0x1d,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x2
// CHECK: [0x00,0x02,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:6], v1, s[8:15] dmask:0x3
// CHECK: [0x00,0x03,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x4
// CHECK: [0x00,0x04,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:6], v1, s[8:15] dmask:0x5
// CHECK: [0x00,0x05,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:6], v1, s[8:15] dmask:0x6
// CHECK: [0x00,0x06,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:7], v1, s[8:15] dmask:0x7
// CHECK: [0x00,0x07,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x8
// CHECK: [0x00,0x08,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:6], v1, s[8:15] dmask:0x9
// CHECK: [0x00,0x09,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:6], v1, s[8:15] dmask:0xa
// CHECK: [0x00,0x0a,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:7], v1, s[8:15] dmask:0xb
// CHECK: [0x00,0x0b,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:6], v1, s[8:15] dmask:0xc
// CHECK: [0x00,0x0c,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:7], v1, s[8:15] dmask:0xd
// CHECK: [0x00,0x0d,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:7], v1, s[8:15] dmask:0xe
// CHECK: [0x00,0x0e,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v[5:8], v1, s[8:15] dmask:0xf
// CHECK: [0x00,0x0f,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x0
// CHECK: [0x00,0x00,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v[1:3], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v[1:4], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x08,0xf2,0x01,0x05,0x02,0x00]
image_load_pck v[5:6], v1, s[8:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x09,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x0a,0xf0,0x01,0x05,0x02,0x00]
image_load_pck v5, v1, s[8:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x08,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v252, v1, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0x01,0xfc,0x02,0x00]
image_load_pck_sgn v5, v252, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0xfc,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[12:19] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0x01,0x05,0x03,0x00]
image_load_pck_sgn v5, v1, s[92:99] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0x01,0x05,0x17,0x00]
image_load_pck_sgn v5, v1, ttmp[4:11] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0x01,0x05,0x1d,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x2
// CHECK: [0x00,0x02,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:6], v1, s[8:15] dmask:0x3
// CHECK: [0x00,0x03,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x4
// CHECK: [0x00,0x04,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:6], v1, s[8:15] dmask:0x5
// CHECK: [0x00,0x05,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:6], v1, s[8:15] dmask:0x6
// CHECK: [0x00,0x06,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:7], v1, s[8:15] dmask:0x7
// CHECK: [0x00,0x07,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x8
// CHECK: [0x00,0x08,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:6], v1, s[8:15] dmask:0x9
// CHECK: [0x00,0x09,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:6], v1, s[8:15] dmask:0xa
// CHECK: [0x00,0x0a,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:7], v1, s[8:15] dmask:0xb
// CHECK: [0x00,0x0b,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:6], v1, s[8:15] dmask:0xc
// CHECK: [0x00,0x0c,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:7], v1, s[8:15] dmask:0xd
// CHECK: [0x00,0x0d,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:7], v1, s[8:15] dmask:0xe
// CHECK: [0x00,0x0e,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:8], v1, s[8:15] dmask:0xf
// CHECK: [0x00,0x0f,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x0
// CHECK: [0x00,0x00,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v[1:3], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v[1:4], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x0c,0xf2,0x01,0x05,0x02,0x00]
image_load_pck_sgn v[5:6], v1, s[8:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x0d,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x0e,0xf0,0x01,0x05,0x02,0x00]
image_load_pck_sgn v5, v1, s[8:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x0c,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v252, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x10,0xf0,0x01,0xfc,0x02,0x00]
image_load_mip_pck v5, v[252:253], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x10,0xf0,0xfc,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[12:19] dmask:0x1
// CHECK: [0x00,0x01,0x10,0xf0,0x01,0x05,0x03,0x00]
image_load_mip_pck v5, v[1:2], s[92:99] dmask:0x1
// CHECK: [0x00,0x01,0x10,0xf0,0x01,0x05,0x17,0x00]
image_load_mip_pck v5, v[1:2], ttmp[4:11] dmask:0x1
// CHECK: [0x00,0x01,0x10,0xf0,0x01,0x05,0x1d,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x2
// CHECK: [0x00,0x02,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:6], v[1:2], s[8:15] dmask:0x3
// CHECK: [0x00,0x03,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x4
// CHECK: [0x00,0x04,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:6], v[1:2], s[8:15] dmask:0x5
// CHECK: [0x00,0x05,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:6], v[1:2], s[8:15] dmask:0x6
// CHECK: [0x00,0x06,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:7], v[1:2], s[8:15] dmask:0x7
// CHECK: [0x00,0x07,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x8
// CHECK: [0x00,0x08,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:6], v[1:2], s[8:15] dmask:0x9
// CHECK: [0x00,0x09,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:6], v[1:2], s[8:15] dmask:0xa
// CHECK: [0x00,0x0a,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:7], v[1:2], s[8:15] dmask:0xb
// CHECK: [0x00,0x0b,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:6], v[1:2], s[8:15] dmask:0xc
// CHECK: [0x00,0x0c,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:7], v[1:2], s[8:15] dmask:0xd
// CHECK: [0x00,0x0d,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:7], v[1:2], s[8:15] dmask:0xe
// CHECK: [0x00,0x0e,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:8], v[1:2], s[8:15] dmask:0xf
// CHECK: [0x00,0x0f,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x0
// CHECK: [0x00,0x00,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:3], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:4], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x10,0xf2,0x01,0x05,0x02,0x00]
image_load_mip_pck v[5:6], v[1:2], s[8:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x11,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x12,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck v5, v[1:2], s[8:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x10,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v252, v[1:2], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x14,0xf0,0x01,0xfc,0x02,0x00]
image_load_mip_pck_sgn v5, v[252:253], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x14,0xf0,0xfc,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[12:19] dmask:0x1
// CHECK: [0x00,0x01,0x14,0xf0,0x01,0x05,0x03,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[92:99] dmask:0x1
// CHECK: [0x00,0x01,0x14,0xf0,0x01,0x05,0x17,0x00]
image_load_mip_pck_sgn v5, v[1:2], ttmp[4:11] dmask:0x1
// CHECK: [0x00,0x01,0x14,0xf0,0x01,0x05,0x1d,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x2
// CHECK: [0x00,0x02,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:6], v[1:2], s[8:15] dmask:0x3
// CHECK: [0x00,0x03,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x4
// CHECK: [0x00,0x04,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:6], v[1:2], s[8:15] dmask:0x5
// CHECK: [0x00,0x05,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:6], v[1:2], s[8:15] dmask:0x6
// CHECK: [0x00,0x06,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:7], v[1:2], s[8:15] dmask:0x7
// CHECK: [0x00,0x07,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x8
// CHECK: [0x00,0x08,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:6], v[1:2], s[8:15] dmask:0x9
// CHECK: [0x00,0x09,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:6], v[1:2], s[8:15] dmask:0xa
// CHECK: [0x00,0x0a,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:7], v[1:2], s[8:15] dmask:0xb
// CHECK: [0x00,0x0b,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:6], v[1:2], s[8:15] dmask:0xc
// CHECK: [0x00,0x0c,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:7], v[1:2], s[8:15] dmask:0xd
// CHECK: [0x00,0x0d,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:7], v[1:2], s[8:15] dmask:0xe
// CHECK: [0x00,0x0e,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:8], v[1:2], s[8:15] dmask:0xf
// CHECK: [0x00,0x0f,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x0
// CHECK: [0x00,0x00,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:3], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:4], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x14,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x14,0xf2,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v[5:6], v[1:2], s[8:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x15,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x16,0xf0,0x01,0x05,0x02,0x00]
image_load_mip_pck_sgn v5, v[1:2], s[8:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x14,0xf0,0x01,0x05,0x02,0x00]
image_store v1, v2, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v252, v2, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0xfc,0x03,0x00]
image_store v1, v252, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0xfc,0x01,0x03,0x00]
image_store v1, v2, s[16:23] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0x01,0x04,0x00]
image_store v1, v2, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0x01,0x17,0x00]
image_store v1, v2, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0x01,0x1d,0x00]
image_store v1, v2, s[12:19] dmask:0x2 unorm
// CHECK: [0x00,0x12,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:2], v2, s[12:19] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v2, s[12:19] dmask:0x4 unorm
// CHECK: [0x00,0x14,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:2], v2, s[12:19] dmask:0x5 unorm
// CHECK: [0x00,0x15,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:2], v2, s[12:19] dmask:0x6 unorm
// CHECK: [0x00,0x16,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:3], v2, s[12:19] dmask:0x7 unorm
// CHECK: [0x00,0x17,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v2, s[12:19] dmask:0x8 unorm
// CHECK: [0x00,0x18,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:2], v2, s[12:19] dmask:0x9 unorm
// CHECK: [0x00,0x19,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:2], v2, s[12:19] dmask:0xa unorm
// CHECK: [0x00,0x1a,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:3], v2, s[12:19] dmask:0xb unorm
// CHECK: [0x00,0x1b,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:2], v2, s[12:19] dmask:0xc unorm
// CHECK: [0x00,0x1c,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:3], v2, s[12:19] dmask:0xd unorm
// CHECK: [0x00,0x1d,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:3], v2, s[12:19] dmask:0xe unorm
// CHECK: [0x00,0x1e,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v[1:4], v2, s[12:19] dmask:0xf unorm
// CHECK: [0x00,0x1f,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v2, s[12:19] dmask:0x0 unorm
// CHECK: [0x00,0x10,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v[2:3], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v[2:4], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v[2:5], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v2, s[12:19] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v2, s[12:19] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x20,0xf2,0x02,0x01,0x03,0x00]
image_store v1, v2, s[12:19] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x22,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v2, s[12:19] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x20,0xf0,0x02,0x01,0x03,0x00]
image_store v1, v2, s[12:19] dmask:0x1 unorm d16
// CHECK: [0x00,0x11,0x20,0xf0,0x02,0x01,0x03,0x80]
image_store_mip v1, v[2:3], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v252, v[2:3], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x24,0xf0,0x02,0xfc,0x03,0x00]
image_store_mip v1, v[252:253], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x24,0xf0,0xfc,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[16:23] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x24,0xf0,0x02,0x01,0x04,0x00]
image_store_mip v1, v[2:3], s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x24,0xf0,0x02,0x01,0x17,0x00]
image_store_mip v1, v[2:3], ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x24,0xf0,0x02,0x01,0x1d,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x2 unorm
// CHECK: [0x00,0x12,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:2], v[2:3], s[12:19] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x4 unorm
// CHECK: [0x00,0x14,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:2], v[2:3], s[12:19] dmask:0x5 unorm
// CHECK: [0x00,0x15,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:2], v[2:3], s[12:19] dmask:0x6 unorm
// CHECK: [0x00,0x16,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:3], v[2:3], s[12:19] dmask:0x7 unorm
// CHECK: [0x00,0x17,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x8 unorm
// CHECK: [0x00,0x18,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:2], v[2:3], s[12:19] dmask:0x9 unorm
// CHECK: [0x00,0x19,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:2], v[2:3], s[12:19] dmask:0xa unorm
// CHECK: [0x00,0x1a,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:3], v[2:3], s[12:19] dmask:0xb unorm
// CHECK: [0x00,0x1b,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:2], v[2:3], s[12:19] dmask:0xc unorm
// CHECK: [0x00,0x1c,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:3], v[2:3], s[12:19] dmask:0xd unorm
// CHECK: [0x00,0x1d,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:3], v[2:3], s[12:19] dmask:0xe unorm
// CHECK: [0x00,0x1e,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v[1:4], v[2:3], s[12:19] dmask:0xf unorm
// CHECK: [0x00,0x1f,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x0 unorm
// CHECK: [0x00,0x10,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:4], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:5], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x24,0xf2,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x26,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x24,0xf0,0x02,0x01,0x03,0x00]
image_store_mip v1, v[2:3], s[12:19] dmask:0x1 unorm d16
// CHECK: [0x00,0x11,0x24,0xf0,0x02,0x01,0x03,0x80]
image_store_pck v1, v2, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v252, v2, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0x02,0xfc,0x03,0x00]
image_store_pck v1, v252, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0xfc,0x01,0x03,0x00]
image_store_pck v1, v2, s[16:23] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0x02,0x01,0x04,0x00]
image_store_pck v1, v2, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0x02,0x01,0x17,0x00]
image_store_pck v1, v2, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0x02,0x01,0x1d,0x00]
image_store_pck v1, v2, s[12:19] dmask:0x2 unorm
// CHECK: [0x00,0x12,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:2], v2, s[12:19] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v2, s[12:19] dmask:0x4 unorm
// CHECK: [0x00,0x14,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:2], v2, s[12:19] dmask:0x5 unorm
// CHECK: [0x00,0x15,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:2], v2, s[12:19] dmask:0x6 unorm
// CHECK: [0x00,0x16,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:3], v2, s[12:19] dmask:0x7 unorm
// CHECK: [0x00,0x17,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v2, s[12:19] dmask:0x8 unorm
// CHECK: [0x00,0x18,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:2], v2, s[12:19] dmask:0x9 unorm
// CHECK: [0x00,0x19,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:2], v2, s[12:19] dmask:0xa unorm
// CHECK: [0x00,0x1a,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:3], v2, s[12:19] dmask:0xb unorm
// CHECK: [0x00,0x1b,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:2], v2, s[12:19] dmask:0xc unorm
// CHECK: [0x00,0x1c,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:3], v2, s[12:19] dmask:0xd unorm
// CHECK: [0x00,0x1d,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:3], v2, s[12:19] dmask:0xe unorm
// CHECK: [0x00,0x1e,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v[1:4], v2, s[12:19] dmask:0xf unorm
// CHECK: [0x00,0x1f,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v2, s[12:19] dmask:0x0 unorm
// CHECK: [0x00,0x10,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v[2:3], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v[2:4], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v[2:5], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v2, s[12:19] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v2, s[12:19] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x28,0xf2,0x02,0x01,0x03,0x00]
image_store_pck v1, v2, s[12:19] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x2a,0xf0,0x02,0x01,0x03,0x00]
image_store_pck v1, v2, s[12:19] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x28,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v252, v[2:3], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x2c,0xf0,0x02,0xfc,0x03,0x00]
image_store_mip_pck v1, v[252:253], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x2c,0xf0,0xfc,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[16:23] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x2c,0xf0,0x02,0x01,0x04,0x00]
image_store_mip_pck v1, v[2:3], s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x2c,0xf0,0x02,0x01,0x17,0x00]
image_store_mip_pck v1, v[2:3], ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x2c,0xf0,0x02,0x01,0x1d,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x2 unorm
// CHECK: [0x00,0x12,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:2], v[2:3], s[12:19] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x4 unorm
// CHECK: [0x00,0x14,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:2], v[2:3], s[12:19] dmask:0x5 unorm
// CHECK: [0x00,0x15,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:2], v[2:3], s[12:19] dmask:0x6 unorm
// CHECK: [0x00,0x16,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:3], v[2:3], s[12:19] dmask:0x7 unorm
// CHECK: [0x00,0x17,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x8 unorm
// CHECK: [0x00,0x18,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:2], v[2:3], s[12:19] dmask:0x9 unorm
// CHECK: [0x00,0x19,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:2], v[2:3], s[12:19] dmask:0xa unorm
// CHECK: [0x00,0x1a,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:3], v[2:3], s[12:19] dmask:0xb unorm
// CHECK: [0x00,0x1b,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:2], v[2:3], s[12:19] dmask:0xc unorm
// CHECK: [0x00,0x1c,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:3], v[2:3], s[12:19] dmask:0xd unorm
// CHECK: [0x00,0x1d,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:3], v[2:3], s[12:19] dmask:0xe unorm
// CHECK: [0x00,0x1e,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v[1:4], v[2:3], s[12:19] dmask:0xf unorm
// CHECK: [0x00,0x1f,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x0 unorm
// CHECK: [0x00,0x10,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:4], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:5], s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x2c,0xf2,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x2e,0xf0,0x02,0x01,0x03,0x00]
image_store_mip_pck v1, v[2:3], s[12:19] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x2c,0xf0,0x02,0x01,0x03,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v252, v1, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x38,0xf0,0x01,0xfc,0x02,0x00]
image_get_resinfo v5, v252, s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x38,0xf0,0xfc,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[12:19] dmask:0x1
// CHECK: [0x00,0x01,0x38,0xf0,0x01,0x05,0x03,0x00]
image_get_resinfo v5, v1, s[92:99] dmask:0x1
// CHECK: [0x00,0x01,0x38,0xf0,0x01,0x05,0x17,0x00]
image_get_resinfo v5, v1, ttmp[4:11] dmask:0x1
// CHECK: [0x00,0x01,0x38,0xf0,0x01,0x05,0x1d,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x2
// CHECK: [0x00,0x02,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:6], v1, s[8:15] dmask:0x3
// CHECK: [0x00,0x03,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x4
// CHECK: [0x00,0x04,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:6], v1, s[8:15] dmask:0x5
// CHECK: [0x00,0x05,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:6], v1, s[8:15] dmask:0x6
// CHECK: [0x00,0x06,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:7], v1, s[8:15] dmask:0x7
// CHECK: [0x00,0x07,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x8
// CHECK: [0x00,0x08,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:6], v1, s[8:15] dmask:0x9
// CHECK: [0x00,0x09,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:6], v1, s[8:15] dmask:0xa
// CHECK: [0x00,0x0a,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:7], v1, s[8:15] dmask:0xb
// CHECK: [0x00,0x0b,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:6], v1, s[8:15] dmask:0xc
// CHECK: [0x00,0x0c,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:7], v1, s[8:15] dmask:0xd
// CHECK: [0x00,0x0d,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:7], v1, s[8:15] dmask:0xe
// CHECK: [0x00,0x0e,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:8], v1, s[8:15] dmask:0xf
// CHECK: [0x00,0x0f,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x0
// CHECK: [0x00,0x00,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x38,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x38,0xf2,0x01,0x05,0x02,0x00]
image_get_resinfo v[5:6], v1, s[8:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x39,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x3a,0xf0,0x01,0x05,0x02,0x00]
image_get_resinfo v5, v1, s[8:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x38,0xf0,0x01,0x05,0x02,0x00]
image_atomic_swap v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0x01,0x05,0x02,0x00]
image_atomic_swap v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_swap v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0xff,0x05,0x02,0x00]
image_atomic_swap v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0x01,0x05,0x03,0x00]
image_atomic_swap v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0x01,0x05,0x17,0x00]
image_atomic_swap v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_swap v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x40,0xf0,0x01,0x05,0x02,0x00]
image_atomic_swap v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0x01,0x05,0x02,0x00]
image_atomic_swap v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0x01,0x05,0x02,0x00]
image_atomic_swap v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x40,0xf0,0x01,0x05,0x02,0x00]
image_atomic_swap v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x40,0xf0,0x01,0x05,0x02,0x00]
image_atomic_swap v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x40,0xf2,0x01,0x05,0x02,0x00]
image_atomic_swap v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x42,0xf0,0x01,0x05,0x02,0x00]
image_atomic_swap v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x40,0xf0,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[252:253], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_cmpswap v[5:6], v255, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0xff,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v1, s[12:19] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0x01,0x05,0x03,0x00]
image_atomic_cmpswap v[5:6], v1, s[92:99] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0x01,0x05,0x17,0x00]
image_atomic_cmpswap v[5:6], v1, ttmp[4:11] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_cmpswap v[5:8], v1, s[8:15] dmask:0xf unorm
// CHECK: [0x00,0x1f,0x44,0xf0,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v[1:2], s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v[1:3], s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v[1:4], s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x44,0xf0,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v1, s[8:15] dmask:0x3 unorm glc
// CHECK: [0x00,0x33,0x44,0xf0,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v1, s[8:15] dmask:0x3 unorm slc
// CHECK: [0x00,0x13,0x44,0xf2,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v1, s[8:15] dmask:0x3 unorm lwe
// CHECK: [0x00,0x13,0x46,0xf0,0x01,0x05,0x02,0x00]
image_atomic_cmpswap v[5:6], v1, s[8:15] dmask:0x3 unorm da
// CHECK: [0x00,0x53,0x44,0xf0,0x01,0x05,0x02,0x00]
image_atomic_add v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0x01,0x05,0x02,0x00]
image_atomic_add v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_add v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0xff,0x05,0x02,0x00]
image_atomic_add v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0x01,0x05,0x03,0x00]
image_atomic_add v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0x01,0x05,0x17,0x00]
image_atomic_add v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_add v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x48,0xf0,0x01,0x05,0x02,0x00]
image_atomic_add v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0x01,0x05,0x02,0x00]
image_atomic_add v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0x01,0x05,0x02,0x00]
image_atomic_add v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x48,0xf0,0x01,0x05,0x02,0x00]
image_atomic_add v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x48,0xf0,0x01,0x05,0x02,0x00]
image_atomic_add v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x48,0xf2,0x01,0x05,0x02,0x00]
image_atomic_add v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x4a,0xf0,0x01,0x05,0x02,0x00]
image_atomic_add v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x48,0xf0,0x01,0x05,0x02,0x00]
image_atomic_sub v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_sub v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_sub v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0xff,0x05,0x02,0x00]
image_atomic_sub v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0x01,0x05,0x03,0x00]
image_atomic_sub v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0x01,0x05,0x17,0x00]
image_atomic_sub v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_sub v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x4c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_sub v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_sub v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_sub v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x4c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_sub v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x4c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_sub v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x4c,0xf2,0x01,0x05,0x02,0x00]
image_atomic_sub v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x4e,0xf0,0x01,0x05,0x02,0x00]
image_atomic_sub v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x4c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smin v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smin v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_smin v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0xff,0x05,0x02,0x00]
image_atomic_smin v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0x01,0x05,0x03,0x00]
image_atomic_smin v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0x01,0x05,0x17,0x00]
image_atomic_smin v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_smin v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x50,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smin v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smin v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smin v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x50,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smin v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x50,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smin v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x50,0xf2,0x01,0x05,0x02,0x00]
image_atomic_smin v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x52,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smin v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x50,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umin v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umin v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_umin v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0xff,0x05,0x02,0x00]
image_atomic_umin v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0x01,0x05,0x03,0x00]
image_atomic_umin v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0x01,0x05,0x17,0x00]
image_atomic_umin v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_umin v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x54,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umin v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umin v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umin v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x54,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umin v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x54,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umin v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x54,0xf2,0x01,0x05,0x02,0x00]
image_atomic_umin v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x56,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umin v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x54,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smax v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_smax v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0xff,0x05,0x02,0x00]
image_atomic_smax v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0x01,0x05,0x03,0x00]
image_atomic_smax v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0x01,0x05,0x17,0x00]
image_atomic_smax v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_smax v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x58,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smax v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smax v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smax v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x58,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x58,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x58,0xf2,0x01,0x05,0x02,0x00]
image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x5a,0xf0,0x01,0x05,0x02,0x00]
image_atomic_smax v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x58,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umax v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_umax v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0xff,0x05,0x02,0x00]
image_atomic_umax v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x03,0x00]
image_atomic_umax v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x17,0x00]
image_atomic_umax v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_umax v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x5c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umax v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umax v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umax v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x5c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x5c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x5c,0xf2,0x01,0x05,0x02,0x00]
image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x5e,0xf0,0x01,0x05,0x02,0x00]
image_atomic_umax v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x5c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0x01,0x05,0x02,0x00]
image_atomic_and v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_and v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0xff,0x05,0x02,0x00]
image_atomic_and v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0x01,0x05,0x03,0x00]
image_atomic_and v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0x01,0x05,0x17,0x00]
image_atomic_and v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_and v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x60,0xf0,0x01,0x05,0x02,0x00]
image_atomic_and v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0x01,0x05,0x02,0x00]
image_atomic_and v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0x01,0x05,0x02,0x00]
image_atomic_and v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x60,0xf0,0x01,0x05,0x02,0x00]
image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x60,0xf0,0x01,0x05,0x02,0x00]
image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x60,0xf2,0x01,0x05,0x02,0x00]
image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x62,0xf0,0x01,0x05,0x02,0x00]
image_atomic_and v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x60,0xf0,0x01,0x05,0x02,0x00]
image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0x01,0x05,0x02,0x00]
image_atomic_or v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_or v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0xff,0x05,0x02,0x00]
image_atomic_or v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0x01,0x05,0x03,0x00]
image_atomic_or v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0x01,0x05,0x17,0x00]
image_atomic_or v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_or v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x64,0xf0,0x01,0x05,0x02,0x00]
image_atomic_or v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0x01,0x05,0x02,0x00]
image_atomic_or v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0x01,0x05,0x02,0x00]
image_atomic_or v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x64,0xf0,0x01,0x05,0x02,0x00]
image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x64,0xf0,0x01,0x05,0x02,0x00]
image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x64,0xf2,0x01,0x05,0x02,0x00]
image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x66,0xf0,0x01,0x05,0x02,0x00]
image_atomic_or v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x64,0xf0,0x01,0x05,0x02,0x00]
image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0x01,0x05,0x02,0x00]
image_atomic_xor v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_xor v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0xff,0x05,0x02,0x00]
image_atomic_xor v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0x01,0x05,0x03,0x00]
image_atomic_xor v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0x01,0x05,0x17,0x00]
image_atomic_xor v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_xor v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x68,0xf0,0x01,0x05,0x02,0x00]
image_atomic_xor v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0x01,0x05,0x02,0x00]
image_atomic_xor v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0x01,0x05,0x02,0x00]
image_atomic_xor v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x68,0xf0,0x01,0x05,0x02,0x00]
image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x68,0xf0,0x01,0x05,0x02,0x00]
image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x68,0xf2,0x01,0x05,0x02,0x00]
image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x6a,0xf0,0x01,0x05,0x02,0x00]
image_atomic_xor v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x68,0xf0,0x01,0x05,0x02,0x00]
image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_inc v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_inc v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0xff,0x05,0x02,0x00]
image_atomic_inc v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x03,0x00]
image_atomic_inc v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x17,0x00]
image_atomic_inc v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_inc v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x6c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_inc v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_inc v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_inc v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x6c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x6c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x6c,0xf2,0x01,0x05,0x02,0x00]
image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x6e,0xf0,0x01,0x05,0x02,0x00]
image_atomic_inc v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x6c,0xf0,0x01,0x05,0x02,0x00]
image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0x01,0x05,0x02,0x00]
image_atomic_dec v252, v1, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0x01,0xfc,0x02,0x00]
image_atomic_dec v5, v255, s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0xff,0x05,0x02,0x00]
image_atomic_dec v5, v1, s[12:19] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0x01,0x05,0x03,0x00]
image_atomic_dec v5, v1, s[92:99] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0x01,0x05,0x17,0x00]
image_atomic_dec v5, v1, ttmp[4:11] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0x01,0x05,0x1d,0x00]
image_atomic_dec v[5:6], v1, s[8:15] dmask:0x3 unorm
// CHECK: [0x00,0x13,0x70,0xf0,0x01,0x05,0x02,0x00]
image_atomic_dec v5, v[1:2], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0x01,0x05,0x02,0x00]
image_atomic_dec v5, v[1:3], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0x01,0x05,0x02,0x00]
image_atomic_dec v5, v[1:4], s[8:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x70,0xf0,0x01,0x05,0x02,0x00]
image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm glc
// CHECK: [0x00,0x31,0x70,0xf0,0x01,0x05,0x02,0x00]
image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm slc
// CHECK: [0x00,0x11,0x70,0xf2,0x01,0x05,0x02,0x00]
image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm lwe
// CHECK: [0x00,0x11,0x72,0xf0,0x01,0x05,0x02,0x00]
image_atomic_dec v5, v1, s[8:15] dmask:0x1 unorm da
// CHECK: [0x00,0x51,0x70,0xf0,0x01,0x05,0x02,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v252, v1, s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0xfc,0x62,0x00]
image_sample v5, v252, s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0xfc,0x05,0x62,0x00]
image_sample v5, v1, s[12:19], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x63,0x00]
image_sample v5, v1, s[92:99], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x77,0x00]
image_sample v5, v1, ttmp[4:11], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x7d,0x00]
image_sample v5, v1, s[8:15], s[16:19] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x82,0x00]
image_sample v5, v1, s[8:15], s[96:99] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x02,0x03]
image_sample v5, v1, s[8:15], ttmp[8:11] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0xc2,0x03]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x2
// CHECK: [0x00,0x02,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x3
// CHECK: [0x00,0x03,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x4
// CHECK: [0x00,0x04,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x5
// CHECK: [0x00,0x05,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x6
// CHECK: [0x00,0x06,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:7], v1, s[8:15], s[12:15] dmask:0x7
// CHECK: [0x00,0x07,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x8
// CHECK: [0x00,0x08,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x9
// CHECK: [0x00,0x09,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0xa
// CHECK: [0x00,0x0a,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:7], v1, s[8:15], s[12:15] dmask:0xb
// CHECK: [0x00,0x0b,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0xc
// CHECK: [0x00,0x0c,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:7], v1, s[8:15], s[12:15] dmask:0xd
// CHECK: [0x00,0x0d,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:7], v1, s[8:15], s[12:15] dmask:0xe
// CHECK: [0x00,0x0e,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v[5:8], v1, s[8:15], s[12:15] dmask:0xf
// CHECK: [0x00,0x0f,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x0
// CHECK: [0x00,0x00,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v[1:2], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v[1:3], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x80,0xf2,0x01,0x05,0x62,0x00]
image_sample v[5:6], v1, s[8:15], s[12:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x81,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x82,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x80,0xf0,0x01,0x05,0x62,0x00]
image_sample v5, v1, s[8:15], s[12:15] dmask:0x1 d16
// CHECK: [0x00,0x01,0x80,0xf0,0x01,0x05,0x62,0x80]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v252, v[1:2], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0xfc,0x62,0x00]
image_sample_cl v5, v[252:253], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0xfc,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[12:19], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x63,0x00]
image_sample_cl v5, v[1:2], s[92:99], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x77,0x00]
image_sample_cl v5, v[1:2], ttmp[4:11], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x7d,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[16:19] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x82,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[96:99] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x02,0x03]
image_sample_cl v5, v[1:2], s[8:15], ttmp[8:11] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0xc2,0x03]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x2
// CHECK: [0x00,0x02,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x3
// CHECK: [0x00,0x03,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x4
// CHECK: [0x00,0x04,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x5
// CHECK: [0x00,0x05,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x6
// CHECK: [0x00,0x06,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0x7
// CHECK: [0x00,0x07,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x8
// CHECK: [0x00,0x08,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x9
// CHECK: [0x00,0x09,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xa
// CHECK: [0x00,0x0a,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xb
// CHECK: [0x00,0x0b,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0xc
// CHECK: [0x00,0x0c,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xd
// CHECK: [0x00,0x0d,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:7], v[1:2], s[8:15], s[12:15] dmask:0xe
// CHECK: [0x00,0x0e,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v[5:8], v[1:2], s[8:15], s[12:15] dmask:0xf
// CHECK: [0x00,0x0f,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x0
// CHECK: [0x00,0x00,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:3], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:4], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x84,0xf2,0x01,0x05,0x62,0x00]
image_sample_cl v[5:6], v[1:2], s[8:15], s[12:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x85,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x86,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x84,0xf0,0x01,0x05,0x62,0x00]
image_sample_cl v5, v[1:2], s[8:15], s[12:15] dmask:0x1 d16
// CHECK: [0x00,0x01,0x84,0xf0,0x01,0x05,0x62,0x80]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v252, v[1:3], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0xfc,0x62,0x00]
image_sample_d v5, v[246:248], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0xf6,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[12:19], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x63,0x00]
image_sample_d v5, v[1:3], s[92:99], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x77,0x00]
image_sample_d v5, v[1:3], ttmp[4:11], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x7d,0x00]
image_sample_d v5, v[1:3], s[8:15], s[16:19] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x82,0x00]
image_sample_d v5, v[1:3], s[8:15], s[96:99] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x02,0x03]
image_sample_d v5, v[1:3], s[8:15], ttmp[8:11] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0xc2,0x03]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x2
// CHECK: [0x00,0x02,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x3
// CHECK: [0x00,0x03,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x4
// CHECK: [0x00,0x04,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x5
// CHECK: [0x00,0x05,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x6
// CHECK: [0x00,0x06,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:7], v[1:3], s[8:15], s[12:15] dmask:0x7
// CHECK: [0x00,0x07,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x8
// CHECK: [0x00,0x08,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x9
// CHECK: [0x00,0x09,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:6], v[1:3], s[8:15], s[12:15] dmask:0xa
// CHECK: [0x00,0x0a,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xb
// CHECK: [0x00,0x0b,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:6], v[1:3], s[8:15], s[12:15] dmask:0xc
// CHECK: [0x00,0x0c,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xd
// CHECK: [0x00,0x0d,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:7], v[1:3], s[8:15], s[12:15] dmask:0xe
// CHECK: [0x00,0x0e,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v[5:8], v[1:3], s[8:15], s[12:15] dmask:0xf
// CHECK: [0x00,0x0f,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x0
// CHECK: [0x00,0x00,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:8], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:16], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:4], s[8:15], s[12:15] dmask:0x1
// CHECK: [0x00,0x01,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x1 unorm
// CHECK: [0x00,0x11,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x1 glc
// CHECK: [0x00,0x21,0x88,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x1 slc
// CHECK: [0x00,0x01,0x88,0xf2,0x01,0x05,0x62,0x00]
image_sample_d v[5:6], v[1:3], s[8:15], s[12:15] dmask:0x1 tfe
// CHECK: [0x00,0x01,0x89,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x1 lwe
// CHECK: [0x00,0x01,0x8a,0xf0,0x01,0x05,0x62,0x00]
image_sample_d v5, v[1:3], s[8:15], s[12:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x