1 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=gfx1010
-show-encoding
%s | FileCheck
-check-prefix
=GFX10
%s
3 buffer_load_sbyte v5
, off
, s
[8:11], s3 glc slc lds
4 // GFX10
: buffer_load_sbyte v5
, off
, s
[8:11], s3 glc slc lds ; encoding
: [0x00,0x40,0x25,0xe0,0x00,0x05,0x42,0x03]
6 buffer_load_sbyte v5
, off
, s
[8:11], s3 glc slc lds dlc
7 // GFX10
: buffer_load_sbyte v5
, off
, s
[8:11], s3 glc slc lds dlc ; encoding
: [0x00,0xc0,0x25,0xe0,0x00,0x05,0x42,0x03]
9 buffer_load_sbyte v5
, off
, s
[8:11], s3 glc slc dlc
10 // GFX10
: buffer_load_sbyte v5
, off
, s
[8:11], s3 glc slc dlc ; encoding
: [0x00,0xc0,0x24,0xe0,0x00,0x05,0x42,0x03]
12 buffer_atomic_fcmpswap v
[0:1], off
, s
[0:3], s0 offset
:4095
13 // GFX10
: buffer_atomic_fcmpswap v
[0:1], off
, s
[0:3], s0 offset
:4095 ; encoding
: [0xff,0x0f,0xf8,0xe0,0x00,0x00,0x00,0x00]
15 buffer_atomic_fcmpswap_x2 v
[0:3], off
, s
[0:3], s0 offset
:4095
16 // GFX10
: buffer_atomic_fcmpswap_x2 v
[0:3], off
, s
[0:3], s0 offset
:4095 ; encoding
: [0xff,0x0f,0x78,0xe1,0x00,0x00,0x00,0x00]
18 buffer_atomic_fcmpswap_x2 v
[0:3], v0
, s
[0:3], s0 idxen offset
:4095
19 // GFX10
: buffer_atomic_fcmpswap_x2 v
[0:3], v0
, s
[0:3], s0 idxen offset
:4095 ; encoding
: [0xff,0x2f,0x78,0xe1,0x00,0x00,0x00,0x00]
21 buffer_atomic_fmax v1
, off
, s
[0:3], s0 offset
:4095
22 // GFX10
: buffer_atomic_fmax v1
, off
, s
[0:3], s0 offset
:4095 ; encoding
: [0xff,0x0f,0x00,0xe1,0x00,0x01,0x00,0x00]
24 buffer_atomic_fmax v0
, off
, s
[0:3], s0 offset
:7
25 // GFX10
: buffer_atomic_fmax v0
, off
, s
[0:3], s0 offset
:7 ; encoding
: [0x07,0x00,0x00,0xe1,0x00,0x00,0x00,0x00]
27 buffer_atomic_fmax v0
, off
, s
[0:3], s0 offset
:4095 glc
28 // GFX10
: buffer_atomic_fmax v0
, off
, s
[0:3], s0 offset
:4095 glc ; encoding
: [0xff,0x4f,0x00,0xe1,0x00,0x00,0x00,0x00]
30 buffer_atomic_fmax_x2 v
[5:6], off
, s
[0:3], s0 offset
:4095
31 // GFX10
: buffer_atomic_fmax_x2 v
[5:6], off
, s
[0:3], s0 offset
:4095 ; encoding
: [0xff,0x0f,0x80,0xe1,0x00,0x05,0x00,0x00]
33 buffer_atomic_fmax_x2 v
[0:1], v0
, s
[0:3], s0 idxen offset
:4095
34 // GFX10
: buffer_atomic_fmax_x2 v
[0:1], v0
, s
[0:3], s0 idxen offset
:4095 ; encoding
: [0xff,0x2f,0x80,0xe1,0x00,0x00,0x00,0x00]
36 buffer_atomic_fmin v0
, off
, s
[0:3], s0
37 // GFX10
: buffer_atomic_fmin v0
, off
, s
[0:3], s0 ; encoding
: [0x00,0x00,0xfc,0xe0,0x00,0x00,0x00,0x00]
39 buffer_atomic_fmin v0
, off
, s
[0:3], s0 offset
:0
40 // GFX10
: buffer_atomic_fmin v0
, off
, s
[0:3], s0 ; encoding
: [0x00,0x00,0xfc,0xe0,0x00,0x00,0x00,0x00]
42 buffer_atomic_fmin_x2 v
[0:1], off
, s
[0:3], s0 offset
:4095 slc
43 // GFX10
: buffer_atomic_fmin_x2 v
[0:1], off
, s
[0:3], s0 offset
:4095 slc ; encoding
: [0xff,0x0f,0x7c,0xe1,0x00,0x00,0x40,0x00]
45 buffer_atomic_fmin_x2 v
[0:1], v0
, s
[0:3], s0 idxen offset
:4095
46 // GFX10
: buffer_atomic_fmin_x2 v
[0:1], v0
, s
[0:3], s0 idxen offset
:4095 ; encoding
: [0xff,0x2f,0x7c,0xe1,0x00,0x00,0x00,0x00]