1 # RUN: llc -march=hexagon -run-pass expand-condsets -o - %s -verify-machineinstrs -debug-only=expand-condsets 2>&1 | FileCheck %s
4 # Check that coalesced registers are removed from live intervals.
6 # Check that %3 is coalesced into %4, and that after coalescing
7 # it is no longer in live intervals.
9 # CHECK-LABEL: After expand-condsets
12 # CHECK: MACHINEINSTRS
16 define void @fred() { ret void }
22 tracksRegLiveness: true
24 - { id: 0, class: intregs }
25 - { id: 1, class: intregs }
26 - { id: 2, class: predregs }
27 - { id: 3, class: intregs }
28 - { id: 4, class: intregs }
30 - { reg: '$r0', virtual-reg: '%0' }
31 - { reg: '$r1', virtual-reg: '%1' }
32 - { reg: '$p0', virtual-reg: '%2' }
36 liveins: $r0, $r1, $p0
38 %0 = COPY $r0 ; Force isSSA = false.
41 ; Check that %3 was coalesced into %4.
42 ; CHECK: %4:intregs = A2_abs %1
43 ; CHECK: %4:intregs = A2_tfrt killed %2, killed %0, implicit %4
45 %4 = C2_mux %2, %0, %3
47 J2_jumpr $r31, implicit $r0, implicit-def $pc