brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 5baad77 Raw
53 lines · plain
1# RUN: llc -mtriple=hexagon -eif-limit=4 -run-pass hexagon-early-if -o - %s | FileCheck %s2# Check that even with the limit of 4 instructions, the block bb.1 is3# if-converted.4 5# CHECK-LABEL: bb.0:6# CHECK: %0:intregs = COPY $r07# CHECK: %1:predregs = C2_cmpeqi %0, 08# CHECK: %2:intregs = A2_tfrsi 1239# CHECK: DBG_VALUE %0, $noreg10# CHECK: DBG_VALUE %0, $noreg11# CHECK: DBG_VALUE %0, $noreg12# CHECK: DBG_VALUE %0, $noreg13# CHECK: DBG_VALUE %0, $noreg14# CHECK: %3:intregs = A2_tfrsi 32115# CHECK: %5:intregs = C2_mux %1, %2, %316 17--- |18  define void @foo() {19    ret void20  }21...22---23name: foo24tracksRegLiveness: true25registers:26  - { id: 0, class: intregs }27  - { id: 1, class: predregs }28  - { id: 2, class: intregs }29  - { id: 3, class: intregs }30  - { id: 4, class: intregs }31body:             |32  bb.0:33    liveins: $r034 35    %0 = COPY $r036    %1 = C2_cmpeqi %0, 037    %2 = A2_tfrsi 12338    J2_jumpt %1, %bb.2, implicit-def dead $pc39    J2_jump %bb.1, implicit-def dead $pc40 41  bb.1:42    DBG_VALUE %0, $noreg43    DBG_VALUE %0, $noreg44    DBG_VALUE %0, $noreg45    DBG_VALUE %0, $noreg46    DBG_VALUE %0, $noreg47    %3 = A2_tfrsi 32148 49  bb.2:50    %4 = PHI %2, %bb.0, %3, %bb.151 52...53