brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 466d04b Raw
38 lines · plain
1# RUN: llc -mtriple=hexagon -run-pass=register-coalescer -o - %s | FileCheck %s2 3# Make sure that the coalescer does not create a full definition with4# an undef flag on the destination. This used to happen when rematerializing5# a double register and coalescing a smaller reg into a subreg of it.6 7# CHECK-NOT: undef %[0-9]+:doubleregs = A2_tfrpi 18 9---10name: fred11tracksRegLiveness: true12body: |13 14  bb.0:15    successors: %bb.1(0x80000000); %bb.1(200.00%)16 17    %18:doubleregs = A2_tfrpi 118    %23:intregs = IMPLICIT_DEF19    %24:doubleregs = IMPLICIT_DEF20 21  bb.1:22    successors: %bb.1(0x80000000); %bb.1(200.00%)23 24    %1:doubleregs = COPY %24:doubleregs25    %0:intregs = COPY %23:intregs26    %13:intregs = COPY %18.isub_lo:doubleregs27    %13:intregs = S2_asl_i_r_or %13:intregs, %0:intregs, 128    %15:intregs = S2_extractu %0:intregs, 1, 3129    undef %17.isub_lo:doubleregs = COPY %13:intregs30    %17.isub_hi:doubleregs = COPY %15:intregs31    %2:doubleregs = A2_addp %17:doubleregs, %1:doubleregs32    %3:intregs = A2_addi %0:intregs, -133    %23:intregs = COPY %3:intregs34    %24:doubleregs = COPY %2:doubleregs35    J2_jump %bb.1, implicit-def dead $pc36 37...38