brintos

brintos / llvm-project-archived public Read only

0
0
Text · 16.7 KiB · 63a8b29 Raw
356 lines · plain
1# RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s | FileCheck %s -check-prefix=GFX92 3#===------------------------------------------------------------------------===#4# s_scratch5#===------------------------------------------------------------------------===#6 7# GFX9: s_scratch_load_dword s5, s[2:3], s101 ; encoding: [0x41,0x01,0x14,0xc0,0x65,0x00,0x00,0x00]80x41,0x01,0x14,0xc0,0x65,0x00,0x00,0x009 10# GFX9: s_scratch_load_dword s5, s[2:3], s0 glc ; encoding: [0x41,0x01,0x15,0xc0,0x00,0x00,0x00,0x00]110x41,0x01,0x15,0xc0,0x00,0x00,0x00,0x0012 13# GFX9: s_scratch_load_dwordx2 s[100:101], s[2:3], s0 ; encoding: [0x01,0x19,0x18,0xc0,0x00,0x00,0x00,0x00]140x01,0x19,0x18,0xc0,0x00,0x00,0x00,0x0015 16# GFX9: s_scratch_load_dwordx2 s[10:11], s[2:3], 0x1 glc ; encoding: [0x81,0x02,0x1b,0xc0,0x01,0x00,0x00,0x00]170x81,0x02,0x1b,0xc0,0x01,0x00,0x00,0x0018 19# GFX9: s_scratch_load_dwordx4 s[20:23], s[4:5], s0 ; encoding: [0x02,0x05,0x1c,0xc0,0x00,0x00,0x00,0x00]200x02,0x05,0x1c,0xc0,0x00,0x00,0x00,0x0021 22# GFX9: s_scratch_store_dword s101, s[4:5], s0 ; encoding: [0x42,0x19,0x54,0xc0,0x00,0x00,0x00,0x00]230x42,0x19,0x54,0xc0,0x00,0x00,0x00,0x0024 25# GFX9: s_scratch_store_dword s1, s[4:5], 0x123 glc ; encoding: [0x42,0x00,0x57,0xc0,0x23,0x01,0x00,0x00]260x42,0x00,0x57,0xc0,0x23,0x01,0x00,0x0027 28# GFX9: s_scratch_store_dwordx2 s[2:3], s[4:5], s101 glc ; encoding: [0x82,0x00,0x59,0xc0,0x65,0x00,0x00,0x00]290x82,0x00,0x59,0xc0,0x65,0x00,0x00,0x0030 31# GFX9: s_scratch_store_dwordx4 s[4:7], s[4:5], s0 glc ; encoding: [0x02,0x01,0x5d,0xc0,0x00,0x00,0x00,0x00]320x02,0x01,0x5d,0xc0,0x00,0x00,0x00,0x0033 34#===------------------------------------------------------------------------===#35# s_dcache_discard36#===------------------------------------------------------------------------===#37 38# GFX9: s_dcache_discard s[100:101], s0 ; encoding: [0x32,0x00,0xa0,0xc0,0x00,0x00,0x00,0x00]390x32,0x00,0xa0,0xc0,0x00,0x00,0x00,0x0040 41# The SGRP variants can alternatively be encoded with imm=0, soffset_en=142# and the offset register encoded in the soffset field with the offset43# field being disregarded.44# GFX9: s_dcache_discard s[100:101], s64 ; encoding: [0x32,0x40,0xa0,0xc0,0x00,0x00,0x00,0x80]450x32,0x40,0xa0,0xc0,0x25,0x00,0x00,0x8046 47# GFX9: s_dcache_discard s[2:3], 0x0 ; encoding: [0x01,0x00,0xa2,0xc0,0x00,0x00,0x00,0x00]480x01,0x00,0xa2,0xc0,0x00,0x00,0x00,0x0049 50# GFX9: s_dcache_discard s[2:3], s2 offset:0x12345 ; encoding: [0x01,0x40,0xa2,0xc0,0x45,0x23,0x01,0x04]510x01,0x40,0xa2,0xc0,0x45,0x23,0x01,0x0452 53# GFX9: s_dcache_discard_x2 s[2:3], s101 ; encoding: [0x01,0x00,0xa4,0xc0,0x65,0x00,0x00,0x00]540x01,0x00,0xa4,0xc0,0x65,0x00,0x00,0x0055 56# GFX9: s_dcache_discard_x2 s[2:3], 0x0 ; encoding: [0x01,0x00,0xa6,0xc0,0x00,0x00,0x00,0x00]570x01,0x00,0xa6,0xc0,0x00,0x00,0x00,0x0058 59# GFX9: s_dcache_discard_x2 s[2:3], s2 offset:0x12345 ; encoding: [0x01,0x40,0xa6,0xc0,0x45,0x23,0x01,0x04]600x01,0x40,0xa6,0xc0,0x45,0x23,0x01,0x0461 62#===------------------------------------------------------------------------===#63# s_atomic64#===------------------------------------------------------------------------===#65 66# GFX9: s_atomic_add s5, s[2:3], s101    ; encoding: [0x41,0x01,0x08,0xc2,0x65,0x00,0x00,0x00]670x41,0x01,0x08,0xc2,0x65,0x00,0x00,0x0068 69# The SGRP variants can alternatively be encoded with imm=0, soffset_en=170# and the offset register encoded in the soffset field with the offset71# field being disregarded.72# GFX9: s_atomic_add s5, s[2:3], s101    ; encoding: [0x41,0x41,0x08,0xc2,0x00,0x00,0x00,0xca]730x41,0x41,0x08,0xc2,0x2e,0x00,0x00,0xca74 75# The SGRP variants can alternatively be encoded with imm=0, soffset_en=176# and the offset register encoded in the soffset field with the offset77# field being disregarded.78# GFX9: s_atomic_add s5, s[2:3], s101 glc ; encoding: [0x41,0x41,0x09,0xc2,0x00,0x00,0x00,0xca]790x41,0x41,0x09,0xc2,0x2e,0x00,0x00,0xca80 81# GFX9: s_atomic_add_x2 s[10:11], s[2:3], s101    ; encoding: [0x81,0x02,0x88,0xc2,0x65,0x00,0x00,0x00]820x81,0x02,0x88,0xc2,0x65,0x00,0x00,0x0083 84# GFX9: s_atomic_add s5, s[2:3], s7 offset:0x12345 ; encoding: [0x41,0x41,0x0a,0xc2,0x45,0x23,0x01,0x0e]850x41,0x41,0x0a,0xc2,0x45,0x23,0x01,0x0e86 87# GFX9: s_atomic_add s5, s[2:3], s7 offset:0x12345 glc ; encoding: [0x41,0x41,0x0b,0xc2,0x45,0x23,0x01,0x0e]880x41,0x41,0x0b,0xc2,0x45,0x23,0x01,0x0e89 90# GFX9: s_atomic_and s101, s[2:3], s0    ; encoding: [0x41,0x19,0x20,0xc2,0x00,0x00,0x00,0x00]910x41,0x19,0x20,0xc2,0x00,0x00,0x00,0x0092 93# GFX9: s_atomic_and_x2 s[12:13], s[2:3], s0    ; encoding: [0x01,0x03,0xa0,0xc2,0x00,0x00,0x00,0x00]940x01,0x03,0xa0,0xc2,0x00,0x00,0x00,0x0095 96# GFX9: s_atomic_cmpswap s[10:11], s[2:3], s101    ; encoding: [0x81,0x02,0x04,0xc2,0x65,0x00,0x00,0x00]970x81,0x02,0x04,0xc2,0x65,0x00,0x00,0x0098 99# GFX9: s_atomic_cmpswap s[10:11], s[2:3], 0x0    ; encoding: [0x81,0x02,0x06,0xc2,0x00,0x00,0x00,0x00]1000x81,0x02,0x06,0xc2,0x00,0x00,0x00,0x00101 102# GFX9: s_atomic_cmpswap s[10:11], s[2:3], s0 glc    ; encoding: [0x81,0x02,0x05,0xc2,0x00,0x00,0x00,0x00]1030x81,0x02,0x05,0xc2,0x00,0x00,0x00,0x00104 105# GFX9: s_atomic_cmpswap_x2 s[20:23], s[2:3], s101    ; encoding: [0x01,0x05,0x84,0xc2,0x65,0x00,0x00,0x00]1060x01,0x05,0x84,0xc2,0x65,0x00,0x00,0x00107 108# GFX9: s_atomic_cmpswap_x2 s[20:23], s[2:3], 0x0    ; encoding: [0x01,0x05,0x86,0xc2,0x00,0x00,0x00,0x00]1090x01,0x05,0x86,0xc2,0x00,0x00,0x00,0x00110 111# GFX9: s_atomic_cmpswap_x2 s[20:23], s[2:3], s0 glc    ; encoding: [0x01,0x05,0x85,0xc2,0x00,0x00,0x00,0x00]1120x01,0x05,0x85,0xc2,0x00,0x00,0x00,0x00113 114# GFX9: s_atomic_dec s5, s[4:5], s0    ; encoding: [0x42,0x01,0x30,0xc2,0x00,0x00,0x00,0x00]1150x42,0x01,0x30,0xc2,0x00,0x00,0x00,0x00116 117# GFX9: s_atomic_dec_x2 s[100:101], s[2:3], s0    ; encoding: [0x01,0x19,0xb0,0xc2,0x00,0x00,0x00,0x00]1180x01,0x19,0xb0,0xc2,0x00,0x00,0x00,0x00119 120# GFX9: s_atomic_inc s5, s[100:101], s0    ; encoding: [0x72,0x01,0x2c,0xc2,0x00,0x00,0x00,0x00]1210x72,0x01,0x2c,0xc2,0x00,0x00,0x00,0x00122 123# GFX9: s_atomic_inc_x2 s[10:11], s[4:5], s0    ; encoding: [0x82,0x02,0xac,0xc2,0x00,0x00,0x00,0x00]1240x82,0x02,0xac,0xc2,0x00,0x00,0x00,0x00125 126# GFX9: s_atomic_or s5, s[2:3], s101    ; encoding: [0x41,0x01,0x24,0xc2,0x65,0x00,0x00,0x00]1270x41,0x01,0x24,0xc2,0x65,0x00,0x00,0x00128 129# GFX9: s_atomic_or_x2 s[10:11], s[2:3], s101    ; encoding: [0x81,0x02,0xa4,0xc2,0x65,0x00,0x00,0x00]1300x81,0x02,0xa4,0xc2,0x65,0x00,0x00,0x00131 132# GFX9: s_atomic_smax s5, s[2:3], 0x0    ; encoding: [0x41,0x01,0x1a,0xc2,0x00,0x00,0x00,0x00]1330x41,0x01,0x1a,0xc2,0x00,0x00,0x00,0x00134 135# GFX9: s_atomic_smax_x2 s[10:11], s[2:3], 0x0    ; encoding: [0x81,0x02,0x9a,0xc2,0x00,0x00,0x00,0x00]1360x81,0x02,0x9a,0xc2,0x00,0x00,0x00,0x00137 138# GFX9: s_atomic_smin s5, s[2:3], s0 glc    ; encoding: [0x41,0x01,0x11,0xc2,0x00,0x00,0x00,0x00]1390x41,0x01,0x11,0xc2,0x00,0x00,0x00,0x00140 141# GFX9: s_atomic_smin_x2 s[10:11], s[2:3], s0 glc    ; encoding: [0x81,0x02,0x91,0xc2,0x00,0x00,0x00,0x00]1420x81,0x02,0x91,0xc2,0x00,0x00,0x00,0x00143 144# GFX9: s_atomic_sub s5, s[2:3], s0    ; encoding: [0x41,0x01,0x0c,0xc2,0x00,0x00,0x00,0x00]1450x41,0x01,0x0c,0xc2,0x00,0x00,0x00,0x00146 147# GFX9: s_atomic_sub_x2 s[10:11], s[2:3], s0    ; encoding: [0x81,0x02,0x8c,0xc2,0x00,0x00,0x00,0x00]1480x81,0x02,0x8c,0xc2,0x00,0x00,0x00,0x00149 150# GFX9: s_atomic_swap s101, s[2:3], s0    ; encoding: [0x41,0x19,0x00,0xc2,0x00,0x00,0x00,0x00]1510x41,0x19,0x00,0xc2,0x00,0x00,0x00,0x00152 153# GFX9: s_atomic_swap_x2 s[12:13], s[2:3], s0    ; encoding: [0x01,0x03,0x80,0xc2,0x00,0x00,0x00,0x00]1540x01,0x03,0x80,0xc2,0x00,0x00,0x00,0x00155 156# GFX9: s_atomic_umax s5, s[4:5], s0    ; encoding: [0x42,0x01,0x1c,0xc2,0x00,0x00,0x00,0x00]1570x42,0x01,0x1c,0xc2,0x00,0x00,0x00,0x00158 159# GFX9: s_atomic_umax_x2 s[100:101], s[2:3], s0    ; encoding: [0x01,0x19,0x9c,0xc2,0x00,0x00,0x00,0x00]1600x01,0x19,0x9c,0xc2,0x00,0x00,0x00,0x00161 162# GFX9: s_atomic_umin s5, s[100:101], s0    ; encoding: [0x72,0x01,0x14,0xc2,0x00,0x00,0x00,0x00]1630x72,0x01,0x14,0xc2,0x00,0x00,0x00,0x00164 165# GFX9: s_atomic_umin_x2 s[10:11], s[4:5], s0    ; encoding: [0x82,0x02,0x94,0xc2,0x00,0x00,0x00,0x00]1660x82,0x02,0x94,0xc2,0x00,0x00,0x00,0x00167 168# GFX9: s_atomic_xor s5, s[2:3], s101    ; encoding: [0x41,0x01,0x28,0xc2,0x65,0x00,0x00,0x00]1690x41,0x01,0x28,0xc2,0x65,0x00,0x00,0x00170 171# GFX9: s_atomic_xor_x2 s[10:11], s[2:3], s101    ; encoding: [0x81,0x02,0xa8,0xc2,0x65,0x00,0x00,0x00]1720x81,0x02,0xa8,0xc2,0x65,0x00,0x00,0x00173 174#===------------------------------------------------------------------------===#175# s_buffer_atomic176#===------------------------------------------------------------------------===#177 178# GFX9: s_buffer_atomic_add s5, s[4:7], 0x0    ; encoding: [0x42,0x01,0x0a,0xc1,0x00,0x00,0x00,0x00]1790x42,0x01,0x0a,0xc1,0x00,0x00,0x00,0x00180 181# GFX9: s_buffer_atomic_add_x2 s[10:11], s[4:7], s0 glc    ; encoding: [0x82,0x02,0x89,0xc1,0x00,0x00,0x00,0x00]1820x82,0x02,0x89,0xc1,0x00,0x00,0x00,0x00183 184# GFX9: s_buffer_atomic_and s5, s[4:7], s0 glc    ; encoding: [0x42,0x01,0x21,0xc1,0x00,0x00,0x00,0x00]1850x42,0x01,0x21,0xc1,0x00,0x00,0x00,0x00186 187# GFX9: s_buffer_atomic_and_x2 s[10:11], s[4:7], s0 glc    ; encoding: [0x82,0x02,0xa1,0xc1,0x00,0x00,0x00,0x00]1880x82,0x02,0xa1,0xc1,0x00,0x00,0x00,0x00189 190# GFX9: s_buffer_atomic_cmpswap s[10:11], s[4:7], s101    ; encoding: [0x82,0x02,0x04,0xc1,0x65,0x00,0x00,0x00]1910x82,0x02,0x04,0xc1,0x65,0x00,0x00,0x00192 193# GFX9: s_buffer_atomic_cmpswap s[10:11], s[4:7], 0x0    ; encoding: [0x82,0x02,0x06,0xc1,0x00,0x00,0x00,0x00]1940x82,0x02,0x06,0xc1,0x00,0x00,0x00,0x00195 196# GFX9: s_buffer_atomic_cmpswap s[10:11], s[4:7], s0 glc    ; encoding: [0x82,0x02,0x05,0xc1,0x00,0x00,0x00,0x00]1970x82,0x02,0x05,0xc1,0x00,0x00,0x00,0x00198 199# GFX9: s_buffer_atomic_cmpswap_x2 s[20:23], s[4:7], s101    ; encoding: [0x02,0x05,0x84,0xc1,0x65,0x00,0x00,0x00]2000x02,0x05,0x84,0xc1,0x65,0x00,0x00,0x00201 202# GFX9: s_buffer_atomic_cmpswap_x2 s[20:23], s[4:7], 0x0    ; encoding: [0x02,0x05,0x86,0xc1,0x00,0x00,0x00,0x00]2030x02,0x05,0x86,0xc1,0x00,0x00,0x00,0x00204 205# GFX9: s_buffer_atomic_cmpswap_x2 s[20:23], s[4:7], s0 glc    ; encoding: [0x02,0x05,0x85,0xc1,0x00,0x00,0x00,0x00]2060x02,0x05,0x85,0xc1,0x00,0x00,0x00,0x00207 208# GFX9: s_buffer_atomic_dec s5, s[4:7], s0    ; encoding: [0x42,0x01,0x30,0xc1,0x00,0x00,0x00,0x00]2090x42,0x01,0x30,0xc1,0x00,0x00,0x00,0x00210 211# GFX9: s_buffer_atomic_dec_x2 s[10:11], s[4:7], s0    ; encoding: [0x82,0x02,0xb0,0xc1,0x00,0x00,0x00,0x00]2120x82,0x02,0xb0,0xc1,0x00,0x00,0x00,0x00213 214# GFX9: s_buffer_atomic_inc s101, s[4:7], s0    ; encoding: [0x42,0x19,0x2c,0xc1,0x00,0x00,0x00,0x00]2150x42,0x19,0x2c,0xc1,0x00,0x00,0x00,0x00216 217# GFX9: s_buffer_atomic_inc_x2 s[12:13], s[4:7], s0    ; encoding: [0x02,0x03,0xac,0xc1,0x00,0x00,0x00,0x00]2180x02,0x03,0xac,0xc1,0x00,0x00,0x00,0x00219 220# GFX9: s_buffer_atomic_or s5, s[8:11], s0    ; encoding: [0x44,0x01,0x24,0xc1,0x00,0x00,0x00,0x00]2210x44,0x01,0x24,0xc1,0x00,0x00,0x00,0x00222 223# GFX9: s_buffer_atomic_or_x2 s[100:101], s[4:7], s0    ; encoding: [0x02,0x19,0xa4,0xc1,0x00,0x00,0x00,0x00]2240x02,0x19,0xa4,0xc1,0x00,0x00,0x00,0x00225 226# GFX9: s_buffer_atomic_smax s5, s[96:99], s0    ; encoding: [0x70,0x01,0x18,0xc1,0x00,0x00,0x00,0x00]2270x70,0x01,0x18,0xc1,0x00,0x00,0x00,0x00228 229# GFX9: s_buffer_atomic_smax_x2 s[10:11], s[96:99], s0    ; encoding: [0xb0,0x02,0x98,0xc1,0x00,0x00,0x00,0x00]2300xb0,0x02,0x98,0xc1,0x00,0x00,0x00,0x00231 232# GFX9: s_buffer_atomic_smin s5, s[4:7], s101    ; encoding: [0x42,0x01,0x10,0xc1,0x65,0x00,0x00,0x00]2330x42,0x01,0x10,0xc1,0x65,0x00,0x00,0x00234 235# GFX9: s_buffer_atomic_smin_x2 s[10:11], s[4:7], s101    ; encoding: [0x82,0x02,0x90,0xc1,0x65,0x00,0x00,0x00]2360x82,0x02,0x90,0xc1,0x65,0x00,0x00,0x00237 238# GFX9: s_buffer_atomic_sub s5, s[4:7], 0x0    ; encoding: [0x42,0x01,0x0e,0xc1,0x00,0x00,0x00,0x00]2390x42,0x01,0x0e,0xc1,0x00,0x00,0x00,0x00240 241# GFX9: s_buffer_atomic_sub_x2 s[10:11], s[4:7], 0x0    ; encoding: [0x82,0x02,0x8e,0xc1,0x00,0x00,0x00,0x00]2420x82,0x02,0x8e,0xc1,0x00,0x00,0x00,0x00243 244# GFX9: s_buffer_atomic_swap s5, s[4:7], s0 glc    ; encoding: [0x42,0x01,0x01,0xc1,0x00,0x00,0x00,0x00]2450x42,0x01,0x01,0xc1,0x00,0x00,0x00,0x00246 247# GFX9: s_buffer_atomic_swap_x2 s[10:11], s[4:7], s0 glc    ; encoding: [0x82,0x02,0x81,0xc1,0x00,0x00,0x00,0x00]2480x82,0x02,0x81,0xc1,0x00,0x00,0x00,0x00249 250# GFX9: s_buffer_atomic_umax s5, s[4:7], s0    ; encoding: [0x42,0x01,0x1c,0xc1,0x00,0x00,0x00,0x00]2510x42,0x01,0x1c,0xc1,0x00,0x00,0x00,0x00252 253# GFX9: s_buffer_atomic_umax_x2 s[10:11], s[4:7], s0    ; encoding: [0x82,0x02,0x9c,0xc1,0x00,0x00,0x00,0x00]2540x82,0x02,0x9c,0xc1,0x00,0x00,0x00,0x00255 256# GFX9: s_buffer_atomic_umin s101, s[4:7], s0    ; encoding: [0x42,0x19,0x14,0xc1,0x00,0x00,0x00,0x00]2570x42,0x19,0x14,0xc1,0x00,0x00,0x00,0x00258 259# GFX9: s_buffer_atomic_umin_x2 s[12:13], s[4:7], s0    ; encoding: [0x02,0x03,0x94,0xc1,0x00,0x00,0x00,0x00]2600x02,0x03,0x94,0xc1,0x00,0x00,0x00,0x00261 262# GFX9: s_buffer_atomic_xor s5, s[8:11], s0    ; encoding: [0x44,0x01,0x28,0xc1,0x00,0x00,0x00,0x00]2630x44,0x01,0x28,0xc1,0x00,0x00,0x00,0x00264 265# GFX9: s_buffer_atomic_xor_x2 s[100:101], s[4:7], s0    ; encoding: [0x02,0x19,0xa8,0xc1,0x00,0x00,0x00,0x00]2660x02,0x19,0xa8,0xc1,0x00,0x00,0x00,0x00267 268#===------------------------------------------------------------------------===#269# Unsigned 20-bit offsets270#===------------------------------------------------------------------------===#271 272# GFX9: s_atc_probe 7, s[4:5], 0xfffff ; encoding: [0xc2,0x01,0x9a,0xc0,0xff,0xff,0x0f,0x00]2730xc2,0x01,0x9a,0xc0,0xff,0xff,0x0f,0x00274 275# GFX9: s_atc_probe_buffer 1, s[8:11], 0xfffff ; encoding: [0x44,0x00,0x9e,0xc0,0xff,0xff,0x0f,0x00]2760x44,0x00,0x9e,0xc0,0xff,0xff,0x0f,0x00277 278# GFX9: s_store_dword s1, s[2:3], 0xfffff ; encoding: [0x41,0x00,0x42,0xc0,0xff,0xff,0x0f,0x00]2790x41,0x00,0x42,0xc0,0xff,0xff,0x0f,0x00280 281# GFX9: s_buffer_store_dword s10, s[92:95], 0xfffff ; encoding: [0xae,0x02,0x62,0xc0,0xff,0xff,0x0f,0x00]2820xae,0x02,0x62,0xc0,0xff,0xff,0x0f,0x00283 284# GFX9: s_atomic_swap s5, s[2:3], 0xfffff ; encoding: [0x41,0x01,0x02,0xc2,0xff,0xff,0x0f,0x00]2850x41,0x01,0x02,0xc2,0xff,0xff,0x0f,0x00286 287# GFX9: s_buffer_atomic_swap s5, s[4:7], 0xfffff ; encoding: [0x42,0x01,0x02,0xc1,0xff,0xff,0x0f,0x00]2880x42,0x01,0x02,0xc1,0xff,0xff,0x0f,0x00289 290#===------------------------------------------------------------------------===#291# Signed 20-bit offsets292#===------------------------------------------------------------------------===#293 294# GFX9: s_atc_probe 7, s[4:5], -0x1 ; encoding: [0xc2,0x01,0x9a,0xc0,0xff,0xff,0x1f,0x00]2950xc2,0x01,0x9a,0xc0,0xff,0xff,0x1f,0x00296 297# GFX9: s_store_dword s1, s[2:3], -0x1 ; encoding: [0x41,0x00,0x42,0xc0,0xff,0xff,0x1f,0x00]2980x41,0x00,0x42,0xc0,0xff,0xff,0x1f,0x00299 300# GFX9: s_load_dword s1, s[2:3], -0x1 ; encoding: [0x41,0x00,0x02,0xc0,0xff,0xff,0x1f,0x00]3010x41,0x00,0x02,0xc0,0xff,0xff,0x1f,0x00302 303# GFX9: s_atomic_swap s5, s[2:3], -0x1 ; encoding: [0x41,0x01,0x02,0xc2,0xff,0xff,0x1f,0x00]3040x41,0x01,0x02,0xc2,0xff,0xff,0x1f,0x00305 306# GFX9: s_atc_probe 7, s[4:5], -0x100000 ; encoding: [0xc2,0x01,0x9a,0xc0,0x00,0x00,0x10,0x00]3070xc2,0x01,0x9a,0xc0,0x00,0x00,0x10,0x00308 309# GFX9: s_store_dword s1, s[2:3], -0x100000 ; encoding: [0x41,0x00,0x42,0xc0,0x00,0x00,0x10,0x00]3100x41,0x00,0x42,0xc0,0x00,0x00,0x10,0x00311 312# GFX9: s_load_dword s1, s[2:3], -0x100000 ; encoding: [0x41,0x00,0x02,0xc0,0x00,0x00,0x10,0x00]3130x41,0x00,0x02,0xc0,0x00,0x00,0x10,0x00314 315# GFX9: s_atomic_swap s5, s[2:3], -0x100000 ; encoding: [0x41,0x01,0x02,0xc2,0x00,0x00,0x10,0x00]3160x41,0x01,0x02,0xc2,0x00,0x00,0x10,0x00317 318#===------------------------------------------------------------------------===#319# Decoding of invalid buffer offsets320#===------------------------------------------------------------------------===#321 322# GFX9: s_atc_probe_buffer 1, s[8:11], -0x1 ; encoding: [0x44,0x00,0x9e,0xc0,0xff,0xff,0x1f,0x00]3230x44,0x00,0x9e,0xc0,0xff,0xff,0x1f,0x00324 325#===------------------------------------------------------------------------===#326# Decoding of OFFSET>127 with IMM=0327#===------------------------------------------------------------------------===#328 329# GFX9: s_atomic_or s5, s[2:3], s15             ; encoding: [0x41,0x01,0x24,0xc2,0x0f,0x00,0x00,0x00]3300x41,0x01,0x24,0xc2,0x8f,0x00,0x00,0x00331 332# GFX9: s_atomic_or s5, s[2:3], exec_hi         ; encoding: [0x41,0x01,0x24,0xc2,0x7f,0x00,0x00,0x00]3330x41,0x01,0x24,0xc2,0xff,0xff,0x00,0x00334 335# GFX9: s_atomic_add_x2 s[34:35], exec, s11 glc ; encoding: [0xbf,0x08,0x89,0xc2,0x0b,0x00,0x00,0x00]3360xbf,0x08,0x89,0xc2,0x0b,0x00,0x00,0x00337 338#===------------------------------------------------------------------------===#339# s_atc_probe340#===------------------------------------------------------------------------===#341 342# GFX9: s_atc_probe 7, s[4:5], s9               ; encoding: [0xc2,0x01,0x98,0xc0,0x09,0x00,0x00,0x00]3430xc2,0x01,0x98,0xc0,0x09,0x00,0x00,0x00344 345# The SGRP variants can alternatively be encoded with imm=0, soffset_en=1346# and the offset register encoded in the soffset field with the offset347# field being disregarded.348# GFX9: s_atc_probe 7, s[4:5], s9               ; encoding: [0xc2,0x41,0x98,0xc0,0x00,0x00,0x00,0x12]3490xc2,0x41,0x98,0xc0,0x2e,0x00,0x00,0x12350 351# GFX9: s_atc_probe 7, s[4:5], s9 offset:0x64   ; encoding: [0xc2,0x41,0x9a,0xc0,0x64,0x00,0x00,0x12]3520xc2,0x41,0x9a,0xc0,0x64,0x00,0x00,0x12353 354# GFX9: s_atc_probe_buffer 7, s[8:11], s9 offset:0x64 ; encoding: [0xc4,0x41,0x9e,0xc0,0x64,0x00,0x00,0x12]3550xc4,0x41,0x9e,0xc0,0x64,0x00,0x00,0x12356