brintos

brintos / llvm-project-archived public Read only

0
0
Text · 11.9 KiB · 9b952bf Raw
341 lines · plain
1# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize32 -disassemble -show-encoding < %s | FileCheck -strict-whitespace -check-prefix=GFX10 %s2# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize64 -disassemble -show-encoding < %s | FileCheck -strict-whitespace -check-prefix=GFX10 %s3 4 5# GFX10: s_barrier                               ; encoding: [0x00,0x00,0x8a,0xbf]60x00,0x00,0x8a,0xbf7 8# GFX10: s_branch 0                              ; encoding: [0x00,0x00,0x82,0xbf]90x00,0x00,0x82,0xbf10 11# GFX10: s_branch 4660                           ; encoding: [0x34,0x12,0x82,0xbf]120x34,0x12,0x82,0xbf13 14# GFX10: s_branch 49617                          ; encoding: [0xd1,0xc1,0x82,0xbf]150xd1,0xc1,0x82,0xbf16 17# GFX10: s_cbranch_cdbgsys 0                     ; encoding: [0x00,0x00,0x97,0xbf]180x00,0x00,0x97,0xbf19 20# GFX10: s_cbranch_cdbgsys 4660                  ; encoding: [0x34,0x12,0x97,0xbf]210x34,0x12,0x97,0xbf22 23# GFX10: s_cbranch_cdbgsys 49617                 ; encoding: [0xd1,0xc1,0x97,0xbf]240xd1,0xc1,0x97,0xbf25 26# GFX10: s_cbranch_cdbgsys_and_user 0            ; encoding: [0x00,0x00,0x9a,0xbf]270x00,0x00,0x9a,0xbf28 29# GFX10: s_cbranch_cdbgsys_and_user 4660         ; encoding: [0x34,0x12,0x9a,0xbf]300x34,0x12,0x9a,0xbf31 32# GFX10: s_cbranch_cdbgsys_and_user 49617        ; encoding: [0xd1,0xc1,0x9a,0xbf]330xd1,0xc1,0x9a,0xbf34 35# GFX10: s_cbranch_cdbgsys_or_user 0             ; encoding: [0x00,0x00,0x99,0xbf]360x00,0x00,0x99,0xbf37 38# GFX10: s_cbranch_cdbgsys_or_user 4660          ; encoding: [0x34,0x12,0x99,0xbf]390x34,0x12,0x99,0xbf40 41# GFX10: s_cbranch_cdbgsys_or_user 49617         ; encoding: [0xd1,0xc1,0x99,0xbf]420xd1,0xc1,0x99,0xbf43 44# GFX10: s_cbranch_cdbguser 0                    ; encoding: [0x00,0x00,0x98,0xbf]450x00,0x00,0x98,0xbf46 47# GFX10: s_cbranch_cdbguser 4660                 ; encoding: [0x34,0x12,0x98,0xbf]480x34,0x12,0x98,0xbf49 50# GFX10: s_cbranch_cdbguser 49617                ; encoding: [0xd1,0xc1,0x98,0xbf]510xd1,0xc1,0x98,0xbf52 53# GFX10: s_cbranch_execnz 0                      ; encoding: [0x00,0x00,0x89,0xbf]540x00,0x00,0x89,0xbf55 56# GFX10: s_cbranch_execnz 4660                   ; encoding: [0x34,0x12,0x89,0xbf]570x34,0x12,0x89,0xbf58 59# GFX10: s_cbranch_execnz 49617                  ; encoding: [0xd1,0xc1,0x89,0xbf]600xd1,0xc1,0x89,0xbf61 62# GFX10: s_cbranch_execz 0                       ; encoding: [0x00,0x00,0x88,0xbf]630x00,0x00,0x88,0xbf64 65# GFX10: s_cbranch_execz 4660                    ; encoding: [0x34,0x12,0x88,0xbf]660x34,0x12,0x88,0xbf67 68# GFX10: s_cbranch_execz 49617                   ; encoding: [0xd1,0xc1,0x88,0xbf]690xd1,0xc1,0x88,0xbf70 71# GFX10: s_cbranch_scc0 0                        ; encoding: [0x00,0x00,0x84,0xbf]720x00,0x00,0x84,0xbf73 74# GFX10: s_cbranch_scc0 4660                     ; encoding: [0x34,0x12,0x84,0xbf]750x34,0x12,0x84,0xbf76 77# GFX10: s_cbranch_scc0 49617                    ; encoding: [0xd1,0xc1,0x84,0xbf]780xd1,0xc1,0x84,0xbf79 80# GFX10: s_cbranch_scc1 0                        ; encoding: [0x00,0x00,0x85,0xbf]810x00,0x00,0x85,0xbf82 83# GFX10: s_cbranch_scc1 4660                     ; encoding: [0x34,0x12,0x85,0xbf]840x34,0x12,0x85,0xbf85 86# GFX10: s_cbranch_scc1 49617                    ; encoding: [0xd1,0xc1,0x85,0xbf]870xd1,0xc1,0x85,0xbf88 89# GFX10: s_cbranch_vccnz 0                       ; encoding: [0x00,0x00,0x87,0xbf]900x00,0x00,0x87,0xbf91 92# GFX10: s_cbranch_vccnz 4660                    ; encoding: [0x34,0x12,0x87,0xbf]930x34,0x12,0x87,0xbf94 95# GFX10: s_cbranch_vccnz 49617                   ; encoding: [0xd1,0xc1,0x87,0xbf]960xd1,0xc1,0x87,0xbf97 98# GFX10: s_cbranch_vccz 0                        ; encoding: [0x00,0x00,0x86,0xbf]990x00,0x00,0x86,0xbf100 101# GFX10: s_cbranch_vccz 4660                     ; encoding: [0x34,0x12,0x86,0xbf]1020x34,0x12,0x86,0xbf103 104# GFX10: s_cbranch_vccz 49617                    ; encoding: [0xd1,0xc1,0x86,0xbf]1050xd1,0xc1,0x86,0xbf106 107# GFX10: s_clause 0x0                            ; encoding: [0x00,0x00,0xa1,0xbf]1080x00,0x00,0xa1,0xbf109 110# GFX10: s_clause 0x1234                         ; encoding: [0x34,0x12,0xa1,0xbf]1110x34,0x12,0xa1,0xbf112 113# GFX10: s_clause 0xc1d1                         ; encoding: [0xd1,0xc1,0xa1,0xbf]1140xd1,0xc1,0xa1,0xbf115 116# GFX10: s_code_end                              ; encoding: [0x00,0x00,0x9f,0xbf]1170x00,0x00,0x9f,0xbf118 119# GFX10: s_decperflevel 0                        ; encoding: [0x00,0x00,0x95,0xbf]1200x00,0x00,0x95,0xbf121 122# GFX10: s_decperflevel 0x1234                   ; encoding: [0x34,0x12,0x95,0xbf]1230x34,0x12,0x95,0xbf124 125# GFX10: s_decperflevel 0xc1d1                   ; encoding: [0xd1,0xc1,0x95,0xbf]1260xd1,0xc1,0x95,0xbf127 128# GFX10: s_denorm_mode 0                         ; encoding: [0x00,0x00,0xa5,0xbf]1290x00,0x00,0xa5,0xbf130 131# GFX10: s_denorm_mode 0x1234                    ; encoding: [0x34,0x12,0xa5,0xbf]1320x34,0x12,0xa5,0xbf133 134# GFX10: s_denorm_mode 0xc1d1                    ; encoding: [0xd1,0xc1,0xa5,0xbf]1350xd1,0xc1,0xa5,0xbf136 137# GFX10: s_endpgm                                ; encoding: [0x00,0x00,0x81,0xbf]1380x00,0x00,0x81,0xbf139 140# GFX10: s_endpgm 1                              ; encoding: [0x01,0x00,0x81,0xbf]1410x01,0x00,0x81,0xbf142 143# GFX10: s_endpgm 65535                          ; encoding: [0xff,0xff,0x81,0xbf]1440xff,0xff,0x81,0xbf145 146# GFX10: s_endpgm_ordered_ps_done                ; encoding: [0x00,0x00,0x9e,0xbf]1470x00,0x00,0x9e,0xbf148 149# GFX10: s_endpgm_saved                          ; encoding: [0x00,0x00,0x9b,0xbf]1500x00,0x00,0x9b,0xbf151 152# GFX10: s_icache_inv                            ; encoding: [0x00,0x00,0x93,0xbf]1530x00,0x00,0x93,0xbf154 155# GFX10: s_incperflevel 0                        ; encoding: [0x00,0x00,0x94,0xbf]1560x00,0x00,0x94,0xbf157 158# GFX10: s_incperflevel 0x1234                   ; encoding: [0x34,0x12,0x94,0xbf]1590x34,0x12,0x94,0xbf160 161# GFX10: s_incperflevel 0xc1d1                   ; encoding: [0xd1,0xc1,0x94,0xbf]1620xd1,0xc1,0x94,0xbf163 164# GFX10: s_inst_prefetch 0x0                     ; encoding: [0x00,0x00,0xa0,0xbf]1650x00,0x00,0xa0,0xbf166 167# GFX10: s_inst_prefetch 0x1234                  ; encoding: [0x34,0x12,0xa0,0xbf]1680x34,0x12,0xa0,0xbf169 170# GFX10: s_inst_prefetch 0xc1d1                  ; encoding: [0xd1,0xc1,0xa0,0xbf]1710xd1,0xc1,0xa0,0xbf172 173# GFX10: s_nop 0                                 ; encoding: [0x00,0x00,0x80,0xbf]1740x00,0x00,0x80,0xbf175 176# GFX10: s_nop 0x1234                            ; encoding: [0x34,0x12,0x80,0xbf]1770x34,0x12,0x80,0xbf178 179# GFX10: s_nop 0xc1d1                            ; encoding: [0xd1,0xc1,0x80,0xbf]1800xd1,0xc1,0x80,0xbf181 182# GFX10: s_round_mode 0x0                        ; encoding: [0x00,0x00,0xa4,0xbf]1830x00,0x00,0xa4,0xbf184 185# GFX10: s_round_mode 0x1234                     ; encoding: [0x34,0x12,0xa4,0xbf]1860x34,0x12,0xa4,0xbf187 188# GFX10: s_round_mode 0xc1d1                     ; encoding: [0xd1,0xc1,0xa4,0xbf]1890xd1,0xc1,0xa4,0xbf190 191# GFX10: s_sendmsg sendmsg(0, 0, 0)              ; encoding: [0x00,0x00,0x90,0xbf]1920x00,0x00,0x90,0xbf193 194# GFX10: s_sendmsg 4660                          ; encoding: [0x34,0x12,0x90,0xbf]1950x34,0x12,0x90,0xbf196 197# GFX10: s_sendmsg 49617                         ; encoding: [0xd1,0xc1,0x90,0xbf]1980xd1,0xc1,0x90,0xbf199 200# GFX10: s_sendmsghalt sendmsg(0, 0, 0)          ; encoding: [0x00,0x00,0x91,0xbf]2010x00,0x00,0x91,0xbf202 203# GFX10: s_sendmsghalt 4660                      ; encoding: [0x34,0x12,0x91,0xbf]2040x34,0x12,0x91,0xbf205 206# GFX10: s_sendmsghalt 49617                     ; encoding: [0xd1,0xc1,0x91,0xbf]2070xd1,0xc1,0x91,0xbf208 209# GFX10: s_sethalt 0                             ; encoding: [0x00,0x00,0x8d,0xbf]2100x00,0x00,0x8d,0xbf211 212# GFX10: s_sethalt 0x1234                        ; encoding: [0x34,0x12,0x8d,0xbf]2130x34,0x12,0x8d,0xbf214 215# GFX10: s_sethalt 0xc1d1                        ; encoding: [0xd1,0xc1,0x8d,0xbf]2160xd1,0xc1,0x8d,0xbf217 218# GFX10: s_setkill 0                             ; encoding: [0x00,0x00,0x8b,0xbf]2190x00,0x00,0x8b,0xbf220 221# GFX10: s_setkill 0x1234                        ; encoding: [0x34,0x12,0x8b,0xbf]2220x34,0x12,0x8b,0xbf223 224# GFX10: s_setkill 0xc1d1                        ; encoding: [0xd1,0xc1,0x8b,0xbf]2250xd1,0xc1,0x8b,0xbf226 227# GFX10: s_setprio 0                             ; encoding: [0x00,0x00,0x8f,0xbf]2280x00,0x00,0x8f,0xbf229 230# GFX10: s_setprio 0x1234                        ; encoding: [0x34,0x12,0x8f,0xbf]2310x34,0x12,0x8f,0xbf232 233# GFX10: s_setprio 0xc1d1                        ; encoding: [0xd1,0xc1,0x8f,0xbf]2340xd1,0xc1,0x8f,0xbf235 236# GFX10: s_sleep 0                               ; encoding: [0x00,0x00,0x8e,0xbf]2370x00,0x00,0x8e,0xbf238 239# GFX10: s_sleep 0x1234                          ; encoding: [0x34,0x12,0x8e,0xbf]2400x34,0x12,0x8e,0xbf241 242# GFX10: s_sleep 0xc1d1                          ; encoding: [0xd1,0xc1,0x8e,0xbf]2430xd1,0xc1,0x8e,0xbf244 245# GFX10: s_trap 0                                ; encoding: [0x00,0x00,0x92,0xbf]2460x00,0x00,0x92,0xbf247 248# GFX10: s_trap 0x1234                           ; encoding: [0x34,0x12,0x92,0xbf]2490x34,0x12,0x92,0xbf250 251# GFX10: s_trap 0xc1d1                           ; encoding: [0xd1,0xc1,0x92,0xbf]2520xd1,0xc1,0x92,0xbf253 254# GFX10: s_ttracedata                            ; encoding: [0x00,0x00,0x96,0xbf]2550x00,0x00,0x96,0xbf256 257# GFX10: s_ttracedata_imm 0x0                    ; encoding: [0x00,0x00,0xa8,0xbf]2580x00,0x00,0xa8,0xbf259 260# GFX10: s_ttracedata_imm 0x1234                 ; encoding: [0x34,0x12,0xa8,0xbf]2610x34,0x12,0xa8,0xbf262 263# GFX10: s_ttracedata_imm 0xc1d1                 ; encoding: [0xd1,0xc1,0xa8,0xbf]2640xd1,0xc1,0xa8,0xbf265 266# GFX10: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]2670x00,0x00,0x8c,0xbf268 269# GFX10: s_waitcnt vmcnt(4) expcnt(3) lgkmcnt(18) ; encoding: [0x34,0x12,0x8c,0xbf]2700x34,0x12,0x8c,0xbf271 272# GFX10: s_waitcnt vmcnt(49) expcnt(5) lgkmcnt(1) ; encoding: [0x51,0xc1,0x8c,0xbf]2730x51,0xc1,0x8c,0xbf274 275# GFX10: s_wait_idle                             ; encoding: [0x00,0x00,0xa2,0xbf]2760x00,0x00,0xa2,0xbf277 278# GFX10: s_wakeup                                ; encoding: [0x00,0x00,0x83,0xbf]2790x00,0x00,0x83,0xbf280 281#===------------------------------------------------------------------------===#282# s_waitcnt_depctr.283#===------------------------------------------------------------------------===#284 285# GFX10: s_waitcnt_depctr 0x20                   ; encoding: [0x20,0x00,0xa3,0xbf]2860x20,0x00,0xa3,0xbf287 288# GFX10: s_waitcnt_depctr 0x40                   ; encoding: [0x40,0x00,0xa3,0xbf]2890x40,0x00,0xa3,0xbf290 291# GFX10: s_waitcnt_depctr 0x60                   ; encoding: [0x60,0x00,0xa3,0xbf]2920x60,0x00,0xa3,0xbf293 294# GFX10: s_waitcnt_depctr 0x80                   ; encoding: [0x80,0x00,0xa3,0xbf]2950x80,0x00,0xa3,0xbf296 297# GFX10: s_waitcnt_depctr 0xffff                 ; encoding: [0xff,0xff,0xa3,0xbf]2980xff,0xff,0xa3,0xbf299 300# GFX10: s_waitcnt_depctr depctr_sa_sdst(0)      ; encoding: [0x1e,0xff,0xa3,0xbf]3010x1e,0xff,0xa3,0xbf302 303# GFX10: s_waitcnt_depctr depctr_va_vdst(0)      ; encoding: [0x1f,0x0f,0xa3,0xbf]3040x1f,0x0f,0xa3,0xbf305 306# GFX10: s_waitcnt_depctr depctr_va_vdst(1)      ; encoding: [0x1f,0x1f,0xa3,0xbf]3070x1f,0x1f,0xa3,0xbf308 309# GFX10: s_waitcnt_depctr depctr_va_vdst(14)     ; encoding: [0x1f,0xef,0xa3,0xbf]3100x1f,0xef,0xa3,0xbf311 312# GFX10: s_waitcnt_depctr depctr_va_sdst(0)      ; encoding: [0x1f,0xf1,0xa3,0xbf]3130x1f,0xf1,0xa3,0xbf314 315# GFX10: s_waitcnt_depctr depctr_va_sdst(6)      ; encoding: [0x1f,0xfd,0xa3,0xbf]3160x1f,0xfd,0xa3,0xbf317 318# GFX10: s_waitcnt_depctr depctr_va_ssrc(0)      ; encoding: [0x1f,0xfe,0xa3,0xbf]3190x1f,0xfe,0xa3,0xbf320 321# GFX10: s_waitcnt_depctr depctr_va_vcc(0)       ; encoding: [0x1d,0xff,0xa3,0xbf]3220x1d,0xff,0xa3,0xbf323 324# GFX10: s_waitcnt_depctr depctr_vm_vsrc(0)      ; encoding: [0x03,0xff,0xa3,0xbf]3250x03,0xff,0xa3,0xbf326 327# GFX10: s_waitcnt_depctr depctr_vm_vsrc(1)      ; encoding: [0x07,0xff,0xa3,0xbf]3280x07,0xff,0xa3,0xbf329 330# GFX10: s_waitcnt_depctr depctr_vm_vsrc(6)      ; encoding: [0x1b,0xff,0xa3,0xbf]3310x1b,0xff,0xa3,0xbf332 333# GFX10: s_waitcnt_depctr 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,0xa3,0xbf]3340x00,0x00,0xa3,0xbf335 336# GFX10: s_waitcnt_depctr depctr_va_vdst(1) depctr_va_sdst(1) depctr_vm_vsrc(1) ; encoding: [0x07,0x13,0xa3,0xbf]3370x07,0x13,0xa3,0xbf338 339# GFX10: s_waitcnt_depctr depctr_va_vdst(14) depctr_va_sdst(6) depctr_vm_vsrc(6) ; encoding: [0x1b,0xed,0xa3,0xbf]3400x1b,0xed,0xa3,0xbf341