Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / Disassembler / AMDGPU / gfx9_smem_features.txt
blob63a8b292e8ee9d0b40c1581c68ace678e216ba53
1 # RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s | FileCheck %s -check-prefix=GFX9
3 #===------------------------------------------------------------------------===#
4 # s_scratch
5 #===------------------------------------------------------------------------===#
7 # GFX9: s_scratch_load_dword s5, s[2:3], s101 ; encoding: [0x41,0x01,0x14,0xc0,0x65,0x00,0x00,0x00]
8 0x41,0x01,0x14,0xc0,0x65,0x00,0x00,0x00
10 # GFX9: s_scratch_load_dword s5, s[2:3], s0 glc ; encoding: [0x41,0x01,0x15,0xc0,0x00,0x00,0x00,0x00]
11 0x41,0x01,0x15,0xc0,0x00,0x00,0x00,0x00
13 # GFX9: s_scratch_load_dwordx2 s[100:101], s[2:3], s0 ; encoding: [0x01,0x19,0x18,0xc0,0x00,0x00,0x00,0x00]
14 0x01,0x19,0x18,0xc0,0x00,0x00,0x00,0x00
16 # GFX9: s_scratch_load_dwordx2 s[10:11], s[2:3], 0x1 glc ; encoding: [0x81,0x02,0x1b,0xc0,0x01,0x00,0x00,0x00]
17 0x81,0x02,0x1b,0xc0,0x01,0x00,0x00,0x00
19 # GFX9: s_scratch_load_dwordx4 s[20:23], s[4:5], s0 ; encoding: [0x02,0x05,0x1c,0xc0,0x00,0x00,0x00,0x00]
20 0x02,0x05,0x1c,0xc0,0x00,0x00,0x00,0x00
22 # GFX9: s_scratch_store_dword s101, s[4:5], s0 ; encoding: [0x42,0x19,0x54,0xc0,0x00,0x00,0x00,0x00]
23 0x42,0x19,0x54,0xc0,0x00,0x00,0x00,0x00
25 # GFX9: s_scratch_store_dword s1, s[4:5], 0x123 glc ; encoding: [0x42,0x00,0x57,0xc0,0x23,0x01,0x00,0x00]
26 0x42,0x00,0x57,0xc0,0x23,0x01,0x00,0x00
28 # GFX9: s_scratch_store_dwordx2 s[2:3], s[4:5], s101 glc ; encoding: [0x82,0x00,0x59,0xc0,0x65,0x00,0x00,0x00]
29 0x82,0x00,0x59,0xc0,0x65,0x00,0x00,0x00
31 # GFX9: s_scratch_store_dwordx4 s[4:7], s[4:5], s0 glc ; encoding: [0x02,0x01,0x5d,0xc0,0x00,0x00,0x00,0x00]
32 0x02,0x01,0x5d,0xc0,0x00,0x00,0x00,0x00
34 #===------------------------------------------------------------------------===#
35 # s_dcache_discard
36 #===------------------------------------------------------------------------===#
38 # GFX9: s_dcache_discard s[100:101], s0 ; encoding: [0x32,0x00,0xa0,0xc0,0x00,0x00,0x00,0x00]
39 0x32,0x00,0xa0,0xc0,0x00,0x00,0x00,0x00
41 # The SGRP variants can alternatively be encoded with imm=0, soffset_en=1
42 # and the offset register encoded in the soffset field with the offset
43 # field being disregarded.
44 # GFX9: s_dcache_discard s[100:101], s64 ; encoding: [0x32,0x40,0xa0,0xc0,0x00,0x00,0x00,0x80]
45 0x32,0x40,0xa0,0xc0,0x25,0x00,0x00,0x80
47 # GFX9: s_dcache_discard s[2:3], 0x0 ; encoding: [0x01,0x00,0xa2,0xc0,0x00,0x00,0x00,0x00]
48 0x01,0x00,0xa2,0xc0,0x00,0x00,0x00,0x00
50 # GFX9: s_dcache_discard s[2:3], s2 offset:0x12345 ; encoding: [0x01,0x40,0xa2,0xc0,0x45,0x23,0x01,0x04]
51 0x01,0x40,0xa2,0xc0,0x45,0x23,0x01,0x04
53 # GFX9: s_dcache_discard_x2 s[2:3], s101 ; encoding: [0x01,0x00,0xa4,0xc0,0x65,0x00,0x00,0x00]
54 0x01,0x00,0xa4,0xc0,0x65,0x00,0x00,0x00
56 # GFX9: s_dcache_discard_x2 s[2:3], 0x0 ; encoding: [0x01,0x00,0xa6,0xc0,0x00,0x00,0x00,0x00]
57 0x01,0x00,0xa6,0xc0,0x00,0x00,0x00,0x00
59 # GFX9: s_dcache_discard_x2 s[2:3], s2 offset:0x12345 ; encoding: [0x01,0x40,0xa6,0xc0,0x45,0x23,0x01,0x04]
60 0x01,0x40,0xa6,0xc0,0x45,0x23,0x01,0x04
62 #===------------------------------------------------------------------------===#
63 # s_atomic
64 #===------------------------------------------------------------------------===#
66 # GFX9: s_atomic_add s5, s[2:3], s101    ; encoding: [0x41,0x01,0x08,0xc2,0x65,0x00,0x00,0x00]
67 0x41,0x01,0x08,0xc2,0x65,0x00,0x00,0x00
69 # The SGRP variants can alternatively be encoded with imm=0, soffset_en=1
70 # and the offset register encoded in the soffset field with the offset
71 # field being disregarded.
72 # GFX9: s_atomic_add s5, s[2:3], s101    ; encoding: [0x41,0x41,0x08,0xc2,0x00,0x00,0x00,0xca]
73 0x41,0x41,0x08,0xc2,0x2e,0x00,0x00,0xca
75 # The SGRP variants can alternatively be encoded with imm=0, soffset_en=1
76 # and the offset register encoded in the soffset field with the offset
77 # field being disregarded.
78 # GFX9: s_atomic_add s5, s[2:3], s101 glc ; encoding: [0x41,0x41,0x09,0xc2,0x00,0x00,0x00,0xca]
79 0x41,0x41,0x09,0xc2,0x2e,0x00,0x00,0xca
81 # GFX9: s_atomic_add_x2 s[10:11], s[2:3], s101    ; encoding: [0x81,0x02,0x88,0xc2,0x65,0x00,0x00,0x00]
82 0x81,0x02,0x88,0xc2,0x65,0x00,0x00,0x00
84 # GFX9: s_atomic_add s5, s[2:3], s7 offset:0x12345 ; encoding: [0x41,0x41,0x0a,0xc2,0x45,0x23,0x01,0x0e]
85 0x41,0x41,0x0a,0xc2,0x45,0x23,0x01,0x0e
87 # GFX9: s_atomic_add s5, s[2:3], s7 offset:0x12345 glc ; encoding: [0x41,0x41,0x0b,0xc2,0x45,0x23,0x01,0x0e]
88 0x41,0x41,0x0b,0xc2,0x45,0x23,0x01,0x0e
90 # GFX9: s_atomic_and s101, s[2:3], s0    ; encoding: [0x41,0x19,0x20,0xc2,0x00,0x00,0x00,0x00]
91 0x41,0x19,0x20,0xc2,0x00,0x00,0x00,0x00
93 # GFX9: s_atomic_and_x2 s[12:13], s[2:3], s0    ; encoding: [0x01,0x03,0xa0,0xc2,0x00,0x00,0x00,0x00]
94 0x01,0x03,0xa0,0xc2,0x00,0x00,0x00,0x00
96 # GFX9: s_atomic_cmpswap s[10:11], s[2:3], s101    ; encoding: [0x81,0x02,0x04,0xc2,0x65,0x00,0x00,0x00]
97 0x81,0x02,0x04,0xc2,0x65,0x00,0x00,0x00
99 # GFX9: s_atomic_cmpswap s[10:11], s[2:3], 0x0    ; encoding: [0x81,0x02,0x06,0xc2,0x00,0x00,0x00,0x00]
100 0x81,0x02,0x06,0xc2,0x00,0x00,0x00,0x00
102 # GFX9: s_atomic_cmpswap s[10:11], s[2:3], s0 glc    ; encoding: [0x81,0x02,0x05,0xc2,0x00,0x00,0x00,0x00]
103 0x81,0x02,0x05,0xc2,0x00,0x00,0x00,0x00
105 # GFX9: s_atomic_cmpswap_x2 s[20:23], s[2:3], s101    ; encoding: [0x01,0x05,0x84,0xc2,0x65,0x00,0x00,0x00]
106 0x01,0x05,0x84,0xc2,0x65,0x00,0x00,0x00
108 # GFX9: s_atomic_cmpswap_x2 s[20:23], s[2:3], 0x0    ; encoding: [0x01,0x05,0x86,0xc2,0x00,0x00,0x00,0x00]
109 0x01,0x05,0x86,0xc2,0x00,0x00,0x00,0x00
111 # GFX9: s_atomic_cmpswap_x2 s[20:23], s[2:3], s0 glc    ; encoding: [0x01,0x05,0x85,0xc2,0x00,0x00,0x00,0x00]
112 0x01,0x05,0x85,0xc2,0x00,0x00,0x00,0x00
114 # GFX9: s_atomic_dec s5, s[4:5], s0    ; encoding: [0x42,0x01,0x30,0xc2,0x00,0x00,0x00,0x00]
115 0x42,0x01,0x30,0xc2,0x00,0x00,0x00,0x00
117 # GFX9: s_atomic_dec_x2 s[100:101], s[2:3], s0    ; encoding: [0x01,0x19,0xb0,0xc2,0x00,0x00,0x00,0x00]
118 0x01,0x19,0xb0,0xc2,0x00,0x00,0x00,0x00
120 # GFX9: s_atomic_inc s5, s[100:101], s0    ; encoding: [0x72,0x01,0x2c,0xc2,0x00,0x00,0x00,0x00]
121 0x72,0x01,0x2c,0xc2,0x00,0x00,0x00,0x00
123 # GFX9: s_atomic_inc_x2 s[10:11], s[4:5], s0    ; encoding: [0x82,0x02,0xac,0xc2,0x00,0x00,0x00,0x00]
124 0x82,0x02,0xac,0xc2,0x00,0x00,0x00,0x00
126 # GFX9: s_atomic_or s5, s[2:3], s101    ; encoding: [0x41,0x01,0x24,0xc2,0x65,0x00,0x00,0x00]
127 0x41,0x01,0x24,0xc2,0x65,0x00,0x00,0x00
129 # GFX9: s_atomic_or_x2 s[10:11], s[2:3], s101    ; encoding: [0x81,0x02,0xa4,0xc2,0x65,0x00,0x00,0x00]
130 0x81,0x02,0xa4,0xc2,0x65,0x00,0x00,0x00
132 # GFX9: s_atomic_smax s5, s[2:3], 0x0    ; encoding: [0x41,0x01,0x1a,0xc2,0x00,0x00,0x00,0x00]
133 0x41,0x01,0x1a,0xc2,0x00,0x00,0x00,0x00
135 # GFX9: s_atomic_smax_x2 s[10:11], s[2:3], 0x0    ; encoding: [0x81,0x02,0x9a,0xc2,0x00,0x00,0x00,0x00]
136 0x81,0x02,0x9a,0xc2,0x00,0x00,0x00,0x00
138 # GFX9: s_atomic_smin s5, s[2:3], s0 glc    ; encoding: [0x41,0x01,0x11,0xc2,0x00,0x00,0x00,0x00]
139 0x41,0x01,0x11,0xc2,0x00,0x00,0x00,0x00
141 # GFX9: s_atomic_smin_x2 s[10:11], s[2:3], s0 glc    ; encoding: [0x81,0x02,0x91,0xc2,0x00,0x00,0x00,0x00]
142 0x81,0x02,0x91,0xc2,0x00,0x00,0x00,0x00
144 # GFX9: s_atomic_sub s5, s[2:3], s0    ; encoding: [0x41,0x01,0x0c,0xc2,0x00,0x00,0x00,0x00]
145 0x41,0x01,0x0c,0xc2,0x00,0x00,0x00,0x00
147 # GFX9: s_atomic_sub_x2 s[10:11], s[2:3], s0    ; encoding: [0x81,0x02,0x8c,0xc2,0x00,0x00,0x00,0x00]
148 0x81,0x02,0x8c,0xc2,0x00,0x00,0x00,0x00
150 # GFX9: s_atomic_swap s101, s[2:3], s0    ; encoding: [0x41,0x19,0x00,0xc2,0x00,0x00,0x00,0x00]
151 0x41,0x19,0x00,0xc2,0x00,0x00,0x00,0x00
153 # GFX9: s_atomic_swap_x2 s[12:13], s[2:3], s0    ; encoding: [0x01,0x03,0x80,0xc2,0x00,0x00,0x00,0x00]
154 0x01,0x03,0x80,0xc2,0x00,0x00,0x00,0x00
156 # GFX9: s_atomic_umax s5, s[4:5], s0    ; encoding: [0x42,0x01,0x1c,0xc2,0x00,0x00,0x00,0x00]
157 0x42,0x01,0x1c,0xc2,0x00,0x00,0x00,0x00
159 # GFX9: s_atomic_umax_x2 s[100:101], s[2:3], s0    ; encoding: [0x01,0x19,0x9c,0xc2,0x00,0x00,0x00,0x00]
160 0x01,0x19,0x9c,0xc2,0x00,0x00,0x00,0x00
162 # GFX9: s_atomic_umin s5, s[100:101], s0    ; encoding: [0x72,0x01,0x14,0xc2,0x00,0x00,0x00,0x00]
163 0x72,0x01,0x14,0xc2,0x00,0x00,0x00,0x00
165 # GFX9: s_atomic_umin_x2 s[10:11], s[4:5], s0    ; encoding: [0x82,0x02,0x94,0xc2,0x00,0x00,0x00,0x00]
166 0x82,0x02,0x94,0xc2,0x00,0x00,0x00,0x00
168 # GFX9: s_atomic_xor s5, s[2:3], s101    ; encoding: [0x41,0x01,0x28,0xc2,0x65,0x00,0x00,0x00]
169 0x41,0x01,0x28,0xc2,0x65,0x00,0x00,0x00
171 # GFX9: s_atomic_xor_x2 s[10:11], s[2:3], s101    ; encoding: [0x81,0x02,0xa8,0xc2,0x65,0x00,0x00,0x00]
172 0x81,0x02,0xa8,0xc2,0x65,0x00,0x00,0x00
174 #===------------------------------------------------------------------------===#
175 # s_buffer_atomic
176 #===------------------------------------------------------------------------===#
178 # GFX9: s_buffer_atomic_add s5, s[4:7], 0x0    ; encoding: [0x42,0x01,0x0a,0xc1,0x00,0x00,0x00,0x00]
179 0x42,0x01,0x0a,0xc1,0x00,0x00,0x00,0x00
181 # GFX9: s_buffer_atomic_add_x2 s[10:11], s[4:7], s0 glc    ; encoding: [0x82,0x02,0x89,0xc1,0x00,0x00,0x00,0x00]
182 0x82,0x02,0x89,0xc1,0x00,0x00,0x00,0x00
184 # GFX9: s_buffer_atomic_and s5, s[4:7], s0 glc    ; encoding: [0x42,0x01,0x21,0xc1,0x00,0x00,0x00,0x00]
185 0x42,0x01,0x21,0xc1,0x00,0x00,0x00,0x00
187 # GFX9: s_buffer_atomic_and_x2 s[10:11], s[4:7], s0 glc    ; encoding: [0x82,0x02,0xa1,0xc1,0x00,0x00,0x00,0x00]
188 0x82,0x02,0xa1,0xc1,0x00,0x00,0x00,0x00
190 # GFX9: s_buffer_atomic_cmpswap s[10:11], s[4:7], s101    ; encoding: [0x82,0x02,0x04,0xc1,0x65,0x00,0x00,0x00]
191 0x82,0x02,0x04,0xc1,0x65,0x00,0x00,0x00
193 # GFX9: s_buffer_atomic_cmpswap s[10:11], s[4:7], 0x0    ; encoding: [0x82,0x02,0x06,0xc1,0x00,0x00,0x00,0x00]
194 0x82,0x02,0x06,0xc1,0x00,0x00,0x00,0x00
196 # GFX9: s_buffer_atomic_cmpswap s[10:11], s[4:7], s0 glc    ; encoding: [0x82,0x02,0x05,0xc1,0x00,0x00,0x00,0x00]
197 0x82,0x02,0x05,0xc1,0x00,0x00,0x00,0x00
199 # GFX9: s_buffer_atomic_cmpswap_x2 s[20:23], s[4:7], s101    ; encoding: [0x02,0x05,0x84,0xc1,0x65,0x00,0x00,0x00]
200 0x02,0x05,0x84,0xc1,0x65,0x00,0x00,0x00
202 # GFX9: s_buffer_atomic_cmpswap_x2 s[20:23], s[4:7], 0x0    ; encoding: [0x02,0x05,0x86,0xc1,0x00,0x00,0x00,0x00]
203 0x02,0x05,0x86,0xc1,0x00,0x00,0x00,0x00
205 # GFX9: s_buffer_atomic_cmpswap_x2 s[20:23], s[4:7], s0 glc    ; encoding: [0x02,0x05,0x85,0xc1,0x00,0x00,0x00,0x00]
206 0x02,0x05,0x85,0xc1,0x00,0x00,0x00,0x00
208 # GFX9: s_buffer_atomic_dec s5, s[4:7], s0    ; encoding: [0x42,0x01,0x30,0xc1,0x00,0x00,0x00,0x00]
209 0x42,0x01,0x30,0xc1,0x00,0x00,0x00,0x00
211 # GFX9: s_buffer_atomic_dec_x2 s[10:11], s[4:7], s0    ; encoding: [0x82,0x02,0xb0,0xc1,0x00,0x00,0x00,0x00]
212 0x82,0x02,0xb0,0xc1,0x00,0x00,0x00,0x00
214 # GFX9: s_buffer_atomic_inc s101, s[4:7], s0    ; encoding: [0x42,0x19,0x2c,0xc1,0x00,0x00,0x00,0x00]
215 0x42,0x19,0x2c,0xc1,0x00,0x00,0x00,0x00
217 # GFX9: s_buffer_atomic_inc_x2 s[12:13], s[4:7], s0    ; encoding: [0x02,0x03,0xac,0xc1,0x00,0x00,0x00,0x00]
218 0x02,0x03,0xac,0xc1,0x00,0x00,0x00,0x00
220 # GFX9: s_buffer_atomic_or s5, s[8:11], s0    ; encoding: [0x44,0x01,0x24,0xc1,0x00,0x00,0x00,0x00]
221 0x44,0x01,0x24,0xc1,0x00,0x00,0x00,0x00
223 # GFX9: s_buffer_atomic_or_x2 s[100:101], s[4:7], s0    ; encoding: [0x02,0x19,0xa4,0xc1,0x00,0x00,0x00,0x00]
224 0x02,0x19,0xa4,0xc1,0x00,0x00,0x00,0x00
226 # GFX9: s_buffer_atomic_smax s5, s[96:99], s0    ; encoding: [0x70,0x01,0x18,0xc1,0x00,0x00,0x00,0x00]
227 0x70,0x01,0x18,0xc1,0x00,0x00,0x00,0x00
229 # GFX9: s_buffer_atomic_smax_x2 s[10:11], s[96:99], s0    ; encoding: [0xb0,0x02,0x98,0xc1,0x00,0x00,0x00,0x00]
230 0xb0,0x02,0x98,0xc1,0x00,0x00,0x00,0x00
232 # GFX9: s_buffer_atomic_smin s5, s[4:7], s101    ; encoding: [0x42,0x01,0x10,0xc1,0x65,0x00,0x00,0x00]
233 0x42,0x01,0x10,0xc1,0x65,0x00,0x00,0x00
235 # GFX9: s_buffer_atomic_smin_x2 s[10:11], s[4:7], s101    ; encoding: [0x82,0x02,0x90,0xc1,0x65,0x00,0x00,0x00]
236 0x82,0x02,0x90,0xc1,0x65,0x00,0x00,0x00
238 # GFX9: s_buffer_atomic_sub s5, s[4:7], 0x0    ; encoding: [0x42,0x01,0x0e,0xc1,0x00,0x00,0x00,0x00]
239 0x42,0x01,0x0e,0xc1,0x00,0x00,0x00,0x00
241 # GFX9: s_buffer_atomic_sub_x2 s[10:11], s[4:7], 0x0    ; encoding: [0x82,0x02,0x8e,0xc1,0x00,0x00,0x00,0x00]
242 0x82,0x02,0x8e,0xc1,0x00,0x00,0x00,0x00
244 # GFX9: s_buffer_atomic_swap s5, s[4:7], s0 glc    ; encoding: [0x42,0x01,0x01,0xc1,0x00,0x00,0x00,0x00]
245 0x42,0x01,0x01,0xc1,0x00,0x00,0x00,0x00
247 # GFX9: s_buffer_atomic_swap_x2 s[10:11], s[4:7], s0 glc    ; encoding: [0x82,0x02,0x81,0xc1,0x00,0x00,0x00,0x00]
248 0x82,0x02,0x81,0xc1,0x00,0x00,0x00,0x00
250 # GFX9: s_buffer_atomic_umax s5, s[4:7], s0    ; encoding: [0x42,0x01,0x1c,0xc1,0x00,0x00,0x00,0x00]
251 0x42,0x01,0x1c,0xc1,0x00,0x00,0x00,0x00
253 # GFX9: s_buffer_atomic_umax_x2 s[10:11], s[4:7], s0    ; encoding: [0x82,0x02,0x9c,0xc1,0x00,0x00,0x00,0x00]
254 0x82,0x02,0x9c,0xc1,0x00,0x00,0x00,0x00
256 # GFX9: s_buffer_atomic_umin s101, s[4:7], s0    ; encoding: [0x42,0x19,0x14,0xc1,0x00,0x00,0x00,0x00]
257 0x42,0x19,0x14,0xc1,0x00,0x00,0x00,0x00
259 # GFX9: s_buffer_atomic_umin_x2 s[12:13], s[4:7], s0    ; encoding: [0x02,0x03,0x94,0xc1,0x00,0x00,0x00,0x00]
260 0x02,0x03,0x94,0xc1,0x00,0x00,0x00,0x00
262 # GFX9: s_buffer_atomic_xor s5, s[8:11], s0    ; encoding: [0x44,0x01,0x28,0xc1,0x00,0x00,0x00,0x00]
263 0x44,0x01,0x28,0xc1,0x00,0x00,0x00,0x00
265 # GFX9: s_buffer_atomic_xor_x2 s[100:101], s[4:7], s0    ; encoding: [0x02,0x19,0xa8,0xc1,0x00,0x00,0x00,0x00]
266 0x02,0x19,0xa8,0xc1,0x00,0x00,0x00,0x00
268 #===------------------------------------------------------------------------===#
269 # Unsigned 20-bit offsets
270 #===------------------------------------------------------------------------===#
272 # GFX9: s_atc_probe 7, s[4:5], 0xfffff ; encoding: [0xc2,0x01,0x9a,0xc0,0xff,0xff,0x0f,0x00]
273 0xc2,0x01,0x9a,0xc0,0xff,0xff,0x0f,0x00
275 # GFX9: s_atc_probe_buffer 1, s[8:11], 0xfffff ; encoding: [0x44,0x00,0x9e,0xc0,0xff,0xff,0x0f,0x00]
276 0x44,0x00,0x9e,0xc0,0xff,0xff,0x0f,0x00
278 # GFX9: s_store_dword s1, s[2:3], 0xfffff ; encoding: [0x41,0x00,0x42,0xc0,0xff,0xff,0x0f,0x00]
279 0x41,0x00,0x42,0xc0,0xff,0xff,0x0f,0x00
281 # GFX9: s_buffer_store_dword s10, s[92:95], 0xfffff ; encoding: [0xae,0x02,0x62,0xc0,0xff,0xff,0x0f,0x00]
282 0xae,0x02,0x62,0xc0,0xff,0xff,0x0f,0x00
284 # GFX9: s_atomic_swap s5, s[2:3], 0xfffff ; encoding: [0x41,0x01,0x02,0xc2,0xff,0xff,0x0f,0x00]
285 0x41,0x01,0x02,0xc2,0xff,0xff,0x0f,0x00
287 # GFX9: s_buffer_atomic_swap s5, s[4:7], 0xfffff ; encoding: [0x42,0x01,0x02,0xc1,0xff,0xff,0x0f,0x00]
288 0x42,0x01,0x02,0xc1,0xff,0xff,0x0f,0x00
290 #===------------------------------------------------------------------------===#
291 # Signed 20-bit offsets
292 #===------------------------------------------------------------------------===#
294 # GFX9: s_atc_probe 7, s[4:5], -0x1 ; encoding: [0xc2,0x01,0x9a,0xc0,0xff,0xff,0x1f,0x00]
295 0xc2,0x01,0x9a,0xc0,0xff,0xff,0x1f,0x00
297 # GFX9: s_store_dword s1, s[2:3], -0x1 ; encoding: [0x41,0x00,0x42,0xc0,0xff,0xff,0x1f,0x00]
298 0x41,0x00,0x42,0xc0,0xff,0xff,0x1f,0x00
300 # GFX9: s_load_dword s1, s[2:3], -0x1 ; encoding: [0x41,0x00,0x02,0xc0,0xff,0xff,0x1f,0x00]
301 0x41,0x00,0x02,0xc0,0xff,0xff,0x1f,0x00
303 # GFX9: s_atomic_swap s5, s[2:3], -0x1 ; encoding: [0x41,0x01,0x02,0xc2,0xff,0xff,0x1f,0x00]
304 0x41,0x01,0x02,0xc2,0xff,0xff,0x1f,0x00
306 # GFX9: s_atc_probe 7, s[4:5], -0x100000 ; encoding: [0xc2,0x01,0x9a,0xc0,0x00,0x00,0x10,0x00]
307 0xc2,0x01,0x9a,0xc0,0x00,0x00,0x10,0x00
309 # GFX9: s_store_dword s1, s[2:3], -0x100000 ; encoding: [0x41,0x00,0x42,0xc0,0x00,0x00,0x10,0x00]
310 0x41,0x00,0x42,0xc0,0x00,0x00,0x10,0x00
312 # GFX9: s_load_dword s1, s[2:3], -0x100000 ; encoding: [0x41,0x00,0x02,0xc0,0x00,0x00,0x10,0x00]
313 0x41,0x00,0x02,0xc0,0x00,0x00,0x10,0x00
315 # GFX9: s_atomic_swap s5, s[2:3], -0x100000 ; encoding: [0x41,0x01,0x02,0xc2,0x00,0x00,0x10,0x00]
316 0x41,0x01,0x02,0xc2,0x00,0x00,0x10,0x00
318 #===------------------------------------------------------------------------===#
319 # Decoding of invalid buffer offsets
320 #===------------------------------------------------------------------------===#
322 # GFX9: s_atc_probe_buffer 1, s[8:11], -0x1 ; encoding: [0x44,0x00,0x9e,0xc0,0xff,0xff,0x1f,0x00]
323 0x44,0x00,0x9e,0xc0,0xff,0xff,0x1f,0x00
325 #===------------------------------------------------------------------------===#
326 # Decoding of OFFSET>127 with IMM=0
327 #===------------------------------------------------------------------------===#
329 # GFX9: s_atomic_or s5, s[2:3], s15             ; encoding: [0x41,0x01,0x24,0xc2,0x0f,0x00,0x00,0x00]
330 0x41,0x01,0x24,0xc2,0x8f,0x00,0x00,0x00
332 # GFX9: s_atomic_or s5, s[2:3], exec_hi         ; encoding: [0x41,0x01,0x24,0xc2,0x7f,0x00,0x00,0x00]
333 0x41,0x01,0x24,0xc2,0xff,0xff,0x00,0x00
335 # GFX9: s_atomic_add_x2 s[34:35], exec, s11 glc ; encoding: [0xbf,0x08,0x89,0xc2,0x0b,0x00,0x00,0x00]
336 0xbf,0x08,0x89,0xc2,0x0b,0x00,0x00,0x00
338 #===------------------------------------------------------------------------===#
339 # s_atc_probe
340 #===------------------------------------------------------------------------===#
342 # GFX9: s_atc_probe 7, s[4:5], s9               ; encoding: [0xc2,0x01,0x98,0xc0,0x09,0x00,0x00,0x00]
343 0xc2,0x01,0x98,0xc0,0x09,0x00,0x00,0x00
345 # The SGRP variants can alternatively be encoded with imm=0, soffset_en=1
346 # and the offset register encoded in the soffset field with the offset
347 # field being disregarded.
348 # GFX9: s_atc_probe 7, s[4:5], s9               ; encoding: [0xc2,0x41,0x98,0xc0,0x00,0x00,0x00,0x12]
349 0xc2,0x41,0x98,0xc0,0x2e,0x00,0x00,0x12
351 # GFX9: s_atc_probe 7, s[4:5], s9 offset:0x64   ; encoding: [0xc2,0x41,0x9a,0xc0,0x64,0x00,0x00,0x12]
352 0xc2,0x41,0x9a,0xc0,0x64,0x00,0x00,0x12
354 # GFX9: s_atc_probe_buffer 7, s[8:11], s9 offset:0x64 ; encoding: [0xc4,0x41,0x9e,0xc0,0x64,0x00,0x00,0x12]
355 0xc4,0x41,0x9e,0xc0,0x64,0x00,0x00,0x12