brintos

brintos / llvm-project-archived public Read only

0
0
Text · 11.1 KiB · 1e40ea2 Raw
316 lines · plain
1# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1200 -disassemble -show-encoding < %s | FileCheck -strict-whitespace -check-prefixes=GFX12,GFX1200 %s2# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -disassemble -show-encoding < %s | FileCheck -strict-whitespace -check-prefixes=GFX12 %s3 4# GFX12: s_wait_alu depctr_hold_cnt(0) depctr_sa_sdst(0) depctr_va_vdst(0) depctr_va_sdst(0) depctr_va_ssrc(0) depctr_va_vcc(0) depctr_vm_vsrc(0) ; encoding: [0x00,0x00,0x88,0xbf]50x00,0x00,0x88,0xbf6 7# GFX12: s_wait_alu 0xfffe                       ; encoding: [0xfe,0xff,0x88,0xbf]80xfe,0xff,0x88,0xbf9 10# GFX12: s_wait_loadcnt 0x1234                   ; encoding: [0x34,0x12,0xc0,0xbf]110x34,0x12,0xc0,0xbf12 13# GFX12: s_wait_loadcnt 0xc1d1                   ; encoding: [0xd1,0xc1,0xc0,0xbf]140xd1,0xc1,0xc0,0xbf15 16# GFX12: s_wait_storecnt 0x1234                  ; encoding: [0x34,0x12,0xc1,0xbf]170x34,0x12,0xc1,0xbf18 19# GFX12: s_wait_storecnt 0xc1d1                  ; encoding: [0xd1,0xc1,0xc1,0xbf]200xd1,0xc1,0xc1,0xbf21 22# GFX1200: s_wait_samplecnt 0x1234                 ; encoding: [0x34,0x12,0xc2,0xbf]230x34,0x12,0xc2,0xbf24 25# GFX1200: s_wait_samplecnt 0xc1d1                 ; encoding: [0xd1,0xc1,0xc2,0xbf]260xd1,0xc1,0xc2,0xbf27 28# GFX1200: s_wait_bvhcnt 0x1234                    ; encoding: [0x34,0x12,0xc3,0xbf]290x34,0x12,0xc3,0xbf30 31# GFX1200: s_wait_bvhcnt 0xc1d1                    ; encoding: [0xd1,0xc1,0xc3,0xbf]320xd1,0xc1,0xc3,0xbf33 34# GFX1200: s_wait_expcnt 0x1234                    ; encoding: [0x34,0x12,0xc4,0xbf]350x34,0x12,0xc4,0xbf36 37# GFX1200: s_wait_expcnt 0xc1d1                    ; encoding: [0xd1,0xc1,0xc4,0xbf]380xd1,0xc1,0xc4,0xbf39 40# GFX12: s_wait_dscnt 0x1234                     ; encoding: [0x34,0x12,0xc6,0xbf]410x34,0x12,0xc6,0xbf42 43# GFX12: s_wait_dscnt 0xc1d1                     ; encoding: [0xd1,0xc1,0xc6,0xbf]440xd1,0xc1,0xc6,0xbf45 46# GFX12: s_wait_kmcnt 0x1234                     ; encoding: [0x34,0x12,0xc7,0xbf]470x34,0x12,0xc7,0xbf48 49# GFX12: s_wait_kmcnt 0xc1d1                     ; encoding: [0xd1,0xc1,0xc7,0xbf]500xd1,0xc1,0xc7,0xbf51 52# GFX12: s_wait_loadcnt_dscnt 0x1234             ; encoding: [0x34,0x12,0xc8,0xbf]530x34,0x12,0xc8,0xbf54 55# GFX12: s_wait_loadcnt_dscnt 0xc1d1             ; encoding: [0xd1,0xc1,0xc8,0xbf]560xd1,0xc1,0xc8,0xbf57 58# GFX12: s_wait_storecnt_dscnt 0x1234            ; encoding: [0x34,0x12,0xc9,0xbf]590x34,0x12,0xc9,0xbf60 61# GFX12: s_wait_storecnt_dscnt 0xc1d1            ; encoding: [0xd1,0xc1,0xc9,0xbf]620xd1,0xc1,0xc9,0xbf63 64 65# GFX12: s_barrier_wait 0xffff                   ; encoding: [0xff,0xff,0x94,0xbf]660xff,0xff,0x94,0xbf67 68# GFX12: s_barrier_wait 1                        ; encoding: [0x01,0x00,0x94,0xbf]690x01,0x00,0x94,0xbf70 71# GFX12: s_barrier_leave                         ; encoding: [0x00,0x00,0x95,0xbf]720x00,0x00,0x95,0xbf73 74# GFX12: s_branch 0                              ; encoding: [0x00,0x00,0xa0,0xbf]750x00,0x00,0xa0,0xbf76 77# GFX12: s_branch 4660                           ; encoding: [0x34,0x12,0xa0,0xbf]780x34,0x12,0xa0,0xbf79 80# GFX12: s_cbranch_execnz 0                      ; encoding: [0x00,0x00,0xa6,0xbf]810x00,0x00,0xa6,0xbf82 83# GFX12: s_cbranch_execnz 4660                   ; encoding: [0x34,0x12,0xa6,0xbf]840x34,0x12,0xa6,0xbf85 86# GFX12: s_cbranch_execz 0                       ; encoding: [0x00,0x00,0xa5,0xbf]870x00,0x00,0xa5,0xbf88 89# GFX12: s_cbranch_execz 4660                    ; encoding: [0x34,0x12,0xa5,0xbf]900x34,0x12,0xa5,0xbf91 92# GFX12: s_cbranch_scc0 0                        ; encoding: [0x00,0x00,0xa1,0xbf]930x00,0x00,0xa1,0xbf94 95# GFX12: s_cbranch_scc0 4660                     ; encoding: [0x34,0x12,0xa1,0xbf]960x34,0x12,0xa1,0xbf97 98# GFX12: s_cbranch_scc1 0                        ; encoding: [0x00,0x00,0xa2,0xbf]990x00,0x00,0xa2,0xbf100 101# GFX12: s_cbranch_scc1 4660                     ; encoding: [0x34,0x12,0xa2,0xbf]1020x34,0x12,0xa2,0xbf103 104# GFX12: s_cbranch_vccnz 0                       ; encoding: [0x00,0x00,0xa4,0xbf]1050x00,0x00,0xa4,0xbf106 107# GFX12: s_cbranch_vccnz 4660                    ; encoding: [0x34,0x12,0xa4,0xbf]1080x34,0x12,0xa4,0xbf109 110# GFX12: s_cbranch_vccz 0                        ; encoding: [0x00,0x00,0xa3,0xbf]1110x00,0x00,0xa3,0xbf112 113# GFX12: s_cbranch_vccz 4660                     ; encoding: [0x34,0x12,0xa3,0xbf]1140x34,0x12,0xa3,0xbf115 116# GFX12: s_clause 0x0                            ; encoding: [0x00,0x00,0x85,0xbf]1170x00,0x00,0x85,0xbf118 119# GFX12: s_clause 0x1234                         ; encoding: [0x34,0x12,0x85,0xbf]1200x34,0x12,0x85,0xbf121 122# GFX12: s_clause 0xc1d1                         ; encoding: [0xd1,0xc1,0x85,0xbf]1230xd1,0xc1,0x85,0xbf124 125# GFX12: s_code_end                              ; encoding: [0x00,0x00,0x9f,0xbf]1260x00,0x00,0x9f,0xbf127 128# GFX12: s_decperflevel 0                        ; encoding: [0x00,0x00,0xb9,0xbf]1290x00,0x00,0xb9,0xbf130 131# GFX12: s_decperflevel 0x1234                   ; encoding: [0x34,0x12,0xb9,0xbf]1320x34,0x12,0xb9,0xbf133 134# GFX12: s_decperflevel 0xc1d1                   ; encoding: [0xd1,0xc1,0xb9,0xbf]1350xd1,0xc1,0xb9,0xbf136 137# GFX12: s_delay_alu 0                           ; encoding: [0x00,0x00,0x87,0xbf]1380x00,0x00,0x87,0xbf139 140# GFX12: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) ; encoding: [0x91,0x00,0x87,0xbf]1410x91,0x00,0x87,0xbf142 143# GFX12: s_delay_alu instid0(VALU_DEP_1)         ; encoding: [0x01,0x00,0x87,0xbf]1440x01,0x00,0x87,0xbf145 146# GFX12: s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1) ; encoding: [0x81,0x04,0x87,0xbf]1470x81,0x04,0x87,0xbf148 149# GFX12: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3) ; encoding: [0x91,0x01,0x87,0xbf]1500x91,0x01,0x87,0xbf151 152# GFX12: s_delay_alu instid1(SALU_CYCLE_2)       ; encoding: [0x00,0x05,0x87,0xbf]1530x00,0x05,0x87,0xbf154 155# GFX12: s_delay_alu instid1(SALU_CYCLE_3)       ; encoding: [0x80,0x05,0x87,0xbf]1560x80,0x05,0x87,0xbf157 158# GFX12: s_delay_alu instid0(/* invalid instid value */) | instskip(/* invalid instskip value */) | instid1(/* invalid instid value */) ; encoding: [0xff,0x07,0x87,0xbf]1590xff,0x07,0x87,0xbf160 161# GFX12: s_denorm_mode 0                         ; encoding: [0x00,0x00,0x92,0xbf]1620x00,0x00,0x92,0xbf163 164# GFX12: s_denorm_mode 0x1234                    ; encoding: [0x34,0x12,0x92,0xbf]1650x34,0x12,0x92,0xbf166 167# GFX12: s_denorm_mode 0xc1d1                    ; encoding: [0xd1,0xc1,0x92,0xbf]1680xd1,0xc1,0x92,0xbf169 170# GFX12: s_endpgm                                ; encoding: [0x00,0x00,0xb0,0xbf]1710x00,0x00,0xb0,0xbf172 173# GFX12: s_endpgm 1                              ; encoding: [0x01,0x00,0xb0,0xbf]1740x01,0x00,0xb0,0xbf175 176# GFX12: s_endpgm 65535                          ; encoding: [0xff,0xff,0xb0,0xbf]1770xff,0xff,0xb0,0xbf178 179# GFX12: s_endpgm_saved                          ; encoding: [0x00,0x00,0xb1,0xbf]1800x00,0x00,0xb1,0xbf181 182# GFX12: s_icache_inv                            ; encoding: [0x00,0x00,0xbc,0xbf]1830x00,0x00,0xbc,0xbf184 185# GFX12: s_incperflevel 0                        ; encoding: [0x00,0x00,0xb8,0xbf]1860x00,0x00,0xb8,0xbf187 188# GFX12: s_incperflevel 0x1234                   ; encoding: [0x34,0x12,0xb8,0xbf]1890x34,0x12,0xb8,0xbf190 191# GFX12: s_incperflevel 0xc1d1                   ; encoding: [0xd1,0xc1,0xb8,0xbf]1920xd1,0xc1,0xb8,0xbf193 194# GFX12: s_nop 0                                 ; encoding: [0x00,0x00,0x80,0xbf]1950x00,0x00,0x80,0xbf196 197# GFX12: s_nop 0x1234                            ; encoding: [0x34,0x12,0x80,0xbf]1980x34,0x12,0x80,0xbf199 200# GFX12: s_nop 0xc1d1                            ; encoding: [0xd1,0xc1,0x80,0xbf]2010xd1,0xc1,0x80,0xbf202 203# GFX12: s_round_mode 0x0                        ; encoding: [0x00,0x00,0x91,0xbf]2040x00,0x00,0x91,0xbf205 206# GFX12: s_round_mode 0x1234                     ; encoding: [0x34,0x12,0x91,0xbf]2070x34,0x12,0x91,0xbf208 209# GFX12: s_round_mode 0xc1d1                     ; encoding: [0xd1,0xc1,0x91,0xbf]2100xd1,0xc1,0x91,0xbf211 212# GFX12: s_sendmsg 4660                          ; encoding: [0x34,0x12,0xb6,0xbf]2130x34,0x12,0xb6,0xbf214 215# GFX12: s_sendmsg 49617                         ; encoding: [0xd1,0xc1,0xb6,0xbf]2160xd1,0xc1,0xb6,0xbf217 218# GFX12: s_sendmsghalt 4660                      ; encoding: [0x34,0x12,0xb7,0xbf]2190x34,0x12,0xb7,0xbf220 221# GFX12: s_sendmsghalt 49617                     ; encoding: [0xd1,0xc1,0xb7,0xbf]2220xd1,0xc1,0xb7,0xbf223 224# GFX12: s_sendmsghalt sendmsg(0, 0, 0)          ; encoding: [0x00,0x00,0xb7,0xbf]2250x00,0x00,0xb7,0xbf226 227# GFX12: s_sendmsg sendmsg(0, 0, 0)              ; encoding: [0x00,0x00,0xb6,0xbf]2280x00,0x00,0xb6,0xbf229 230# GFX12: s_sendmsg sendmsg(MSG_RTN_GET_DOORBELL) ; encoding: [0x80,0x00,0xb6,0xbf]2310x80,0x00,0xb6,0xbf232 233# GFX12: s_sendmsg sendmsg(MSG_RTN_GET_DDID)     ; encoding: [0x81,0x00,0xb6,0xbf]2340x81,0x00,0xb6,0xbf235 236# GFX12: s_sendmsg sendmsg(MSG_RTN_GET_TMA)      ; encoding: [0x82,0x00,0xb6,0xbf]2370x82,0x00,0xb6,0xbf238 239# GFX12: s_sendmsg sendmsg(MSG_RTN_GET_REALTIME) ; encoding: [0x83,0x00,0xb6,0xbf]2400x83,0x00,0xb6,0xbf241 242# GFX12: s_sendmsg sendmsg(MSG_RTN_SAVE_WAVE)    ; encoding: [0x84,0x00,0xb6,0xbf]2430x84,0x00,0xb6,0xbf244 245# GFX12: s_sendmsg sendmsg(MSG_RTN_GET_TBA)      ; encoding: [0x85,0x00,0xb6,0xbf]2460x85,0x00,0xb6,0xbf247 248# GFX12: s_sethalt 0                             ; encoding: [0x00,0x00,0x82,0xbf]2490x00,0x00,0x82,0xbf250 251# GFX12: s_sethalt 0x1234                        ; encoding: [0x34,0x12,0x82,0xbf]2520x34,0x12,0x82,0xbf253 254# GFX12: s_sethalt 0xc1d1                        ; encoding: [0xd1,0xc1,0x82,0xbf]2550xd1,0xc1,0x82,0xbf256 257# GFX1200: s_setkill 0                             ; encoding: [0x00,0x00,0x81,0xbf]2580x00,0x00,0x81,0xbf259 260# GFX1200: s_setkill 0x1234                        ; encoding: [0x34,0x12,0x81,0xbf]2610x34,0x12,0x81,0xbf262 263# GFX1200: s_setkill 0xc1d1                        ; encoding: [0xd1,0xc1,0x81,0xbf]2640xd1,0xc1,0x81,0xbf265 266# GFX12: s_setprio 0                             ; encoding: [0x00,0x00,0xb5,0xbf]2670x00,0x00,0xb5,0xbf268 269# GFX12: s_setprio 0x1234                        ; encoding: [0x34,0x12,0xb5,0xbf]2700x34,0x12,0xb5,0xbf271 272# GFX12: s_setprio 0xc1d1                        ; encoding: [0xd1,0xc1,0xb5,0xbf]2730xd1,0xc1,0xb5,0xbf274 275# GFX12: s_sleep 0                               ; encoding: [0x00,0x00,0x83,0xbf]2760x00,0x00,0x83,0xbf277 278# GFX12: s_sleep 0x1234                          ; encoding: [0x34,0x12,0x83,0xbf]2790x34,0x12,0x83,0xbf280 281# GFX12: s_sleep 0xc1d1                          ; encoding: [0xd1,0xc1,0x83,0xbf]2820xd1,0xc1,0x83,0xbf283 284# GFX12: s_trap 0                                ; encoding: [0x00,0x00,0x90,0xbf]2850x00,0x00,0x90,0xbf286 287# GFX12: s_trap 0x1234                           ; encoding: [0x34,0x12,0x90,0xbf]2880x34,0x12,0x90,0xbf289 290# GFX12: s_trap 0xc1d1                           ; encoding: [0xd1,0xc1,0x90,0xbf]2910xd1,0xc1,0x90,0xbf292 293# GFX12: s_ttracedata                            ; encoding: [0x00,0x00,0xba,0xbf]2940x00,0x00,0xba,0xbf295 296# GFX12: s_ttracedata_imm 0x0                    ; encoding: [0x00,0x00,0xbb,0xbf]2970x00,0x00,0xbb,0xbf298 299# GFX12: s_ttracedata_imm 0x1234                 ; encoding: [0x34,0x12,0xbb,0xbf]3000x34,0x12,0xbb,0xbf301 302# GFX12: s_ttracedata_imm 0xc1d1                 ; encoding: [0xd1,0xc1,0xbb,0xbf]3030xd1,0xc1,0xbb,0xbf304 305# GFX12: s_wait_idle                             ; encoding: [0x00,0x00,0x8a,0xbf]3060x00,0x00,0x8a,0xbf307 308# GFX12: s_wakeup                                ; encoding: [0x00,0x00,0xb4,0xbf]3090x00,0x00,0xb4,0xbf310 311# GFX1200: s_wait_event 0x3141                     ; encoding: [0x41,0x31,0x8b,0xbf]3120x41,0x31,0x8b,0xbf313 314# GFX1200: s_wait_event 0xc1d1                     ; encoding: [0xd1,0xc1,0x8b,0xbf]3150xd1,0xc1,0x8b,0xbf316