brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.4 KiB · bdf9d88 Raw
84 lines · plain
1# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -start-before=si-lower-sgpr-spills -stop-after=greedy,1 -verify-machineinstrs --stress-regalloc=2 -o - %s | FileCheck -check-prefix GCN-REGALLOC %s2# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -start-before=si-lower-sgpr-spills -stop-after=virtregrewriter,1 -verify-machineinstrs --stress-regalloc=2 -o - %s | FileCheck -check-prefix GCN-REWRITER %s3 4name:            test_wwm_reg_superclass_spill5tracksRegLiveness: true6stack:7  - { id: 0, name: '', type: spill-slot, offset: 0, size: 8, alignment: 8,8      stack-id: sgpr-spill, callee-saved-register: '', callee-saved-restored: true}9machineFunctionInfo:10  isEntryFunction: true11  stackPtrOffsetReg: '$sgpr32'12  sgprForEXECCopy:   '$sgpr100_sgpr101'13body:             |14  bb.0:15    ; GCN-REGALLOC-NUM-2: %{{[0-9]+}}:av_32 = SI_SPILL_WWM_AV32_RESTORE16    ; GCN-REGALLOC: S_ENDPGM 017    ;18    ; GCN-REWRITER-NUM-2: renamable $vgpr0 = SI_SPILL_WWM_AV32_RESTORE19    ; GCN-REWRITER: S_ENDPGM 020    $vgpr0 = IMPLICIT_DEF21    $sgpr0_sgpr1 = IMPLICIT_DEF22    %temp0:vgpr_32(s32) = COPY $vgpr023    %temp1:vgpr_32 = V_MOV_B32_e32 0, implicit $exec24    $vcc = S_AND_B64 $exec, $sgpr0_sgpr1, implicit-def dead $scc25    S_CBRANCH_VCCNZ %bb.2, implicit $vcc26    S_BRANCH %bb.127 28  bb.1:29    %temp2:vreg_64 = IMPLICIT_DEF30    %temp1:vgpr_32 = FLAT_LOAD_DWORD %temp2, 0, 0, implicit $exec, implicit $flat_scr31 32  bb.2:33    %temp3:vreg_64 = V_MOV_B64_PSEUDO 0, implicit $exec34    $sgpr2_sgpr3 = IMPLICIT_DEF35    $sgpr4_sgpr5 = IMPLICIT_DEF36    %temp4:vgpr_32 = FLAT_LOAD_UBYTE %temp3, 0, 0, implicit $exec, implicit $flat_scr37    S_CBRANCH_EXECZ %bb.5, implicit $exec38    S_BRANCH %bb.439 40  bb.3:41    S_BRANCH %bb.842 43  bb.4:44    liveins: $sgpr0_sgpr1, $sgpr2_sgpr3, $sgpr4_sgpr545    SI_SPILL_S64_SAVE killed $sgpr2_sgpr3, %stack.0, implicit $exec, implicit $sgpr3246    $sgpr56_sgpr57 = S_LOAD_DWORDX2_IMM $sgpr4_sgpr5, 48, 047    $sgpr2 = S_MOV_B32 12448    %temp5:vreg_64 = COPY  $sgpr56_sgpr5749    %temp6:vreg_64, dead  $sgpr2_sgpr3 = V_MAD_U64_U32_e64 %temp0(s32), killed $sgpr2, %temp5, 0, implicit $exec50    %temp7:vreg_64 = V_MOV_B64_PSEUDO 0, implicit $exec51    undef %temp8.sub0:vreg_64 = FLAT_LOAD_DWORD %temp7, 0, 0, implicit $exec, implicit $flat_scr52    $sgpr44_sgpr45_sgpr46_sgpr47 = S_LOAD_DWORDX4_IMM  $sgpr4_sgpr5, 88, 053    $sgpr58_sgpr59 = S_LOAD_DWORDX2_IMM  $sgpr4_sgpr5, 104, 054    $sgpr62_sgpr63 = S_XOR_B64  $sgpr0_sgpr1, -1, implicit-def dead $scc55    $sgpr60_sgpr61 = S_MOV_B64 056    S_BRANCH %bb.657 58  bb.5:59    S_CBRANCH_EXECZ %bb.8, implicit $exec60    S_BRANCH %bb.361 62  bb.6:63    liveins: $sgpr0_sgpr1, $sgpr60_sgpr6164    %temp9:vgpr_32 = nofpexcept V_ADD_F32_e32 0, %temp1, implicit $mode, implicit $exec65    %temp10:vgpr_32 = V_AND_B32_e32 2147483647, %temp9, implicit $exec66    %temp11:vgpr_32 = V_AND_B32_e32 65535, %temp4, implicit $exec67    undef %temp12.sub1:vreg_64 = V_MOV_B32_e32 0, implicit $exec68    FLAT_STORE_DWORD %temp7, %temp12.sub1, 0, 0, implicit $exec, implicit $flat_scr69    %temp13:vgpr_32 = V_CNDMASK_B32_e64 0, 1065353216, 0, 0, $sgpr0_sgpr1, implicit $exec70    $sgpr19 = IMPLICIT_DEF71    %temp14:vgpr_32 = nofpexcept V_MUL_F32_e64 0, 0, 0, $sgpr19, 0, 0, implicit $mode, implicit $exec72    $sgpr17 = IMPLICIT_DEF73 74  bb.7:75    liveins: $sgpr60_sgpr6176    $exec = S_OR_B64 $exec, killed $sgpr60_sgpr61, implicit-def $scc77    $sgpr2_sgpr3 = SI_SPILL_S64_RESTORE %stack.0, implicit $exec, implicit $sgpr3278    S_BRANCH %bb.579 80  bb.8:81    S_ENDPGM 082 83...84