44 lines · plain
1# RUN: llc -mtriple=hexagon -run-pass expand-condsets -o - %s -verify-machineinstrs | FileCheck %s2 3# CHECK-LABEL: name: fred4 5# Make sure that <def,read-undef> is accounted for when validating moves6# during predication. In the code below, %2.isub_hi is invalidated7# by the C2_mux instruction, and so predicating the A2_addi as an argument8# to the C2_muxir should not happen.9 10--- |11 define void @fred() { ret void }12 13...14---15 16name: fred17tracksRegLiveness: true18registers:19 - { id: 0, class: predregs }20 - { id: 1, class: intregs }21 - { id: 2, class: doubleregs }22 - { id: 3, class: intregs }23liveins:24 - { reg: '$p0', virtual-reg: '%0' }25 - { reg: '$r0', virtual-reg: '%1' }26 - { reg: '$d0', virtual-reg: '%2' }27 28body: |29 bb.0:30 liveins: $r0, $d0, $p031 %0 = COPY $p032 %1 = COPY $r033 %2 = COPY $d034 ; This copy is added by distributing disjoint live interval. Check35 ; for it to make sure %4 is the right thing.36 ; CHECK: %4:doubleregs = COPY $d037 ; Check that this instruction is unchanged (remains unpredicated)38 ; CHECK: %3:intregs = A2_addi %4.isub_hi, 139 %3 = A2_addi %2.isub_hi, 140 undef %2.isub_lo = C2_mux %0, %2.isub_lo, %141 %2.isub_hi = C2_muxir %0, %3, 042 43...44