1 # RUN: llc -march=hexagon -run-pass expand-condsets %s -o - | FileCheck %s
4 # The physical register as an operand to C2_mux caused a crash.
5 # Check that this compiles successfully and that the mux is expanded.
7 # CHECK: %2:intregs = A2_tfrt %1, $r31
8 # CHECK: %2:intregs = A2_tfrf killed %1, killed %0, implicit %2(tied-def 0)
11 tracksRegLiveness: true
14 successors: %bb.1, %bb.2
17 %0:intregs = A2_tfrsi 0 ;; Multiple defs to ensure IsSSA = false
18 %0:intregs = L2_loadri_io $r0, 0
19 %1:predregs = C2_cmplt %0, 10
20 %2:intregs = C2_mux %1, $r31, %0
21 %3:predregs = C2_cmpeqi %2, 0
22 J2_jumpt %3, %bb.1, implicit-def $pc
23 J2_jump %bb.2, implicit-def $pc
26 PS_jmpret $r31, implicit-def $pc
29 PS_jmpret $r31, implicit-def $pc