brintos

brintos / llvm-project-archived public Read only

0
0
Text · 827 B · 697a699 Raw
33 lines · plain
1# FIXME: This should fail the verifier2# XFAIL: *3# RUN: not --crash llc -o - -mtriple=amdgcn-amd-amdhsa -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s4 5# %1 is live out of %bb.1 through the loop edge, and therefore the kill flag is invalid.6 7# CHECK: *** Bad machine code: Virtual register killed in block, but needed live out. ***8 9---10name:            kill_flag_in_loop11body:             |12  bb.0:13    liveins: $sgpr0, $vgpr0_vgpr114    successors: %bb.1(0x80000000)15 16    %0:sreg_32 = COPY $sgpr017    %1:sreg_32 = S_AND_B32 1, killed %0, implicit-def dead $scc18 19  bb.1:20    successors: %bb.2(0x40000000), %bb.1(0x40000000)21 22    S_CMP_EQ_I32 killed %1:sreg_32, 1, implicit-def $scc23    S_CBRANCH_SCC0 %bb.2, implicit $scc24    S_BRANCH %bb.125 26  bb.2:27    successors: %bb.3(0x80000000)28 29  bb.3:30    S_ENDPGM 031 32...33