brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 8169635 Raw
69 lines · plain
1# RUN: llc %s -mtriple=s390x-linux-gnu -mcpu=z13 \2# RUN:   -start-before=register-coalescer -o - 2>&1 > /dev/null3 4# Test that the SystemZ shouldCoalesce() implementation does not crash in5# case of an undef use in another MBB. This was discovered in testing with6# -systemz-subreg-liveness.7 8--- |9  @g_74 = external dso_local unnamed_addr global i32, align 410  @g_193 = external dso_local unnamed_addr global i32, align 411  12  define dso_local void @main() local_unnamed_addr {13    %1 = load i32, ptr @g_19314    %2 = or i32 %1, -139515371815    %3 = sdiv i32 -1395153718, %216    br i1 undef, label %5, label %417  18  ; <label>:4:                                      ; preds = %019    store i32 %3, ptr @g_7420    store i32 -9, ptr @g_7421    ret void22  23  ; <label>:5:                                      ; preds = %024    unreachable25  }26 27...28---29name:            main30alignment:       1631tracksRegLiveness: true32registers:       33  - { id: 0, class: grx32bit }34  - { id: 1, class: addr64bit }35  - { id: 2, class: gr32bit }36  - { id: 3, class: gr32bit }37  - { id: 4, class: gr64bit }38  - { id: 5, class: gr128bit }39  - { id: 6, class: gr128bit }40  - { id: 7, class: grx32bit }41  - { id: 8, class: gr32bit }42  - { id: 9, class: gr128bit }43body:             |44  bb.0 (%ir-block.0):45    successors: %bb.2(0x00000001), %bb.1(0x7fffffff)46  47    %1:addr64bit = LARL @g_19348    %2:gr32bit = IIFMux 289981357849    %3:gr32bit = COPY killed %250    %3:gr32bit = O %3, killed %1, 0, $noreg, implicit-def dead $cc :: (dereferenceable load (s32) from @g_193)51    %4:gr64bit = LGFI -139515371852    undef %5.subreg_l64:gr128bit = COPY killed %453    %6:gr128bit = COPY killed %554    dead %6:gr128bit = DSGFR %6, killed %355    %7:grx32bit = LHIMux 056    CHIMux killed %7, 0, implicit-def $cc57    BRC 14, 6, %bb.2, implicit killed $cc58    J %bb.159  60  bb.1 (%ir-block.4):61    %8:gr32bit = LHIMux -962    STRL killed %8, @g_74 :: (store (s32) into @g_74)63    Return64  65  bb.2 (%ir-block.5):66    dead %0:grx32bit = COPY undef %6.subreg_l3267 68...69