1 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=gfx1010
-mattr
=+wavefrontsize32
,-wavefrontsize64
-show-encoding
%s | FileCheck
--check-prefix
=GFX10
%s
2 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=gfx1010
-mattr
=-wavefrontsize32
,+wavefrontsize64
-show-encoding
%s | FileCheck
--check-prefix
=GFX10
%s
4 //===----------------------------------------------------------------------===//
6 //===----------------------------------------------------------------------===//
8 flat_load_ubyte v5
, v
[1:2]
9 // GFX10
: encoding
: [0x00,0x00,0x20,0xdc,0x01,0x00,0x7d,0x05]
11 flat_load_sbyte v5
, v
[1:2]
12 // GFX10
: encoding
: [0x00,0x00,0x24,0xdc,0x01,0x00,0x7d,0x05]
14 flat_load_ushort v5
, v
[1:2]
15 // GFX10
: encoding
: [0x00,0x00,0x28,0xdc,0x01,0x00,0x7d,0x05]
17 flat_load_sshort v5
, v
[1:2]
18 // GFX10
: encoding
: [0x00,0x00,0x2c,0xdc,0x01,0x00,0x7d,0x05]
20 flat_load_dword v5
, v
[1:2]
21 // GFX10
: encoding
: [0x00,0x00,0x30,0xdc,0x01,0x00,0x7d,0x05]
23 flat_load_dwordx2 v
[5:6], v
[1:2]
24 // GFX10
: encoding
: [0x00,0x00,0x34,0xdc,0x01,0x00,0x7d,0x05]
26 flat_load_dwordx3 v
[5:7], v
[1:2]
27 // GFX10
: encoding
: [0x00,0x00,0x3c,0xdc,0x01,0x00,0x7d,0x05]
29 flat_load_dwordx4 v
[5:8], v
[1:2]
30 // GFX10
: encoding
: [0x00,0x00,0x38,0xdc,0x01,0x00,0x7d,0x05]
32 flat_store_byte v
[1:2], v2
33 // GFX10
: encoding
: [0x00,0x00,0x60,0xdc,0x01,0x02,0x7d,0x00]
35 flat_store_short v
[1:2], v2
36 // GFX10
: encoding
: [0x00,0x00,0x68,0xdc,0x01,0x02,0x7d,0x00]
38 flat_store_dword v
[1:2], v2
39 // GFX10
: encoding
: [0x00,0x00,0x70,0xdc,0x01,0x02,0x7d,0x00]
41 flat_store_dwordx2 v
[1:2], v
[2:3]
42 // GFX10
: encoding
: [0x00,0x00,0x74,0xdc,0x01,0x02,0x7d,0x00]
44 flat_store_dwordx3 v
[1:2], v
[2:4]
45 // GFX10
: encoding
: [0x00,0x00,0x7c,0xdc,0x01,0x02,0x7d,0x00]
47 flat_store_dwordx4 v
[1:2], v
[2:5]
48 // GFX10
: encoding
: [0x00,0x00,0x78,0xdc,0x01,0x02,0x7d,0x00]
50 flat_atomic_swap v
[1:2], v2
51 // GFX10
: encoding
: [0x00,0x00,0xc0,0xdc,0x01,0x02,0x7d,0x00]
53 flat_atomic_cmpswap v
[1:2], v
[2:3]
54 // GFX10
: encoding
: [0x00,0x00,0xc4,0xdc,0x01,0x02,0x7d,0x00]
56 flat_atomic_add v
[1:2], v2
57 // GFX10
: encoding
: [0x00,0x00,0xc8,0xdc,0x01,0x02,0x7d,0x00]
59 flat_atomic_sub v
[1:2], v2
60 // GFX10
: encoding
: [0x00,0x00,0xcc,0xdc,0x01,0x02,0x7d,0x00]
62 flat_atomic_smin v
[1:2], v2
63 // GFX10
: encoding
: [0x00,0x00,0xd4,0xdc,0x01,0x02,0x7d,0x00]
65 flat_atomic_umin v
[1:2], v2
66 // GFX10
: encoding
: [0x00,0x00,0xd8,0xdc,0x01,0x02,0x7d,0x00]
68 flat_atomic_smax v
[1:2], v2
69 // GFX10
: encoding
: [0x00,0x00,0xdc,0xdc,0x01,0x02,0x7d,0x00]
71 flat_atomic_umax v
[1:2], v2
72 // GFX10
: encoding
: [0x00,0x00,0xe0,0xdc,0x01,0x02,0x7d,0x00]
74 flat_atomic_and v
[1:2], v2
75 // GFX10
: encoding
: [0x00,0x00,0xe4,0xdc,0x01,0x02,0x7d,0x00]
77 flat_atomic_or v
[1:2], v2
78 // GFX10
: encoding
: [0x00,0x00,0xe8,0xdc,0x01,0x02,0x7d,0x00]
80 flat_atomic_xor v
[1:2], v2
81 // GFX10
: encoding
: [0x00,0x00,0xec,0xdc,0x01,0x02,0x7d,0x00]
83 flat_atomic_inc v
[1:2], v2
84 // GFX10
: encoding
: [0x00,0x00,0xf0,0xdc,0x01,0x02,0x7d,0x00]
86 flat_atomic_dec v
[1:2], v2
87 // GFX10
: encoding
: [0x00,0x00,0xf4,0xdc,0x01,0x02,0x7d,0x00]
89 flat_atomic_swap_x2 v
[1:2], v
[2:3]
90 // GFX10
: encoding
: [0x00,0x00,0x40,0xdd,0x01,0x02,0x7d,0x00]
92 flat_atomic_cmpswap_x2 v
[1:2], v
[2:5]
93 // GFX10
: encoding
: [0x00,0x00,0x44,0xdd,0x01,0x02,0x7d,0x00]
95 flat_atomic_add_x2 v
[1:2], v
[2:3]
96 // GFX10
: encoding
: [0x00,0x00,0x48,0xdd,0x01,0x02,0x7d,0x00]
98 flat_atomic_sub_x2 v
[1:2], v
[2:3]
99 // GFX10
: encoding
: [0x00,0x00,0x4c,0xdd,0x01,0x02,0x7d,0x00]
101 flat_atomic_smin_x2 v
[1:2], v
[2:3]
102 // GFX10
: encoding
: [0x00,0x00,0x54,0xdd,0x01,0x02,0x7d,0x00]
104 flat_atomic_umin_x2 v
[1:2], v
[2:3]
105 // GFX10
: encoding
: [0x00,0x00,0x58,0xdd,0x01,0x02,0x7d,0x00]
107 flat_atomic_smax_x2 v
[1:2], v
[2:3]
108 // GFX10
: encoding
: [0x00,0x00,0x5c,0xdd,0x01,0x02,0x7d,0x00]
110 flat_atomic_umax_x2 v
[1:2], v
[2:3]
111 // GFX10
: encoding
: [0x00,0x00,0x60,0xdd,0x01,0x02,0x7d,0x00]
113 flat_atomic_and_x2 v
[1:2], v
[2:3]
114 // GFX10
: encoding
: [0x00,0x00,0x64,0xdd,0x01,0x02,0x7d,0x00]
116 flat_atomic_or_x2 v
[1:2], v
[2:3]
117 // GFX10
: encoding
: [0x00,0x00,0x68,0xdd,0x01,0x02,0x7d,0x00]
119 flat_atomic_xor_x2 v
[1:2], v
[2:3]
120 // GFX10
: encoding
: [0x00,0x00,0x6c,0xdd,0x01,0x02,0x7d,0x00]
122 flat_atomic_inc_x2 v
[1:2], v
[2:3]
123 // GFX10
: encoding
: [0x00,0x00,0x70,0xdd,0x01,0x02,0x7d,0x00]
125 flat_atomic_dec_x2 v
[1:2], v
[2:3]
126 // GFX10
: encoding
: [0x00,0x00,0x74,0xdd,0x01,0x02,0x7d,0x00]
128 // Also see flat-gfx10.s
, flat-global.s
, flat-scratch-instructions.s.