1# RUN: llc -march=hexagon -run-pass=expand-condsets %s -o - | FileCheck %s
2
3# Check that there is a tied implicit use despite having an explicit (but
4# untied) use:
5# CHECK: %[[R:[0-9]+]]:intregs = A2_paddif killed %{{[0-9]+}}, %[[R]], 1, implicit %[[R]](tied-def 0)
6
7name: f0
8tracksRegLiveness: true
9body: |
10  bb.0:
11    successors: %bb.1
12    liveins: $r0, $r1
13    %0:intregs = COPY $r0
14    %0:intregs = COPY $r0       ; defeat IsSSA detection
15    %1:intregs = COPY $r1
16    %2:intregs = COPY $r0
17    %3:intregs = M2_mpyi %2, %1
18    %4:intregs = A2_sub %0, %3
19    %5:predregs = C2_cmpeqi %4, 0
20    %6:intregs = A2_addi %2, 1
21    %7:intregs = C2_mux %5, %2, %6
22
23  bb.1:
24
25...
26