1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -run-pass=si-i1-copies -verify-machineinstrs %s -o - | FileCheck -check-prefixes=GCN %s
4 # Test that the new IMPLICIT_DEF is inserted in the correct location.
7 tracksRegLiveness: true
9 ; GCN-LABEL: name: test_undef
11 ; GCN-NEXT: successors: %bb.1(0x80000000)
13 ; GCN-NEXT: S_BRANCH %bb.1
16 ; GCN-NEXT: [[DEF:%[0-9]+]]:sreg_64 = IMPLICIT_DEF
17 ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_64_xexec = COPY [[DEF]]
18 ; GCN-NEXT: [[V_CNDMASK_B32_e64_:%[0-9]+]]:vgpr_32 = V_CNDMASK_B32_e64 0, 0, 0, 1, [[COPY]], implicit $exec
22 %0:vreg_1 = IMPLICIT_DEF
26 %1:vreg_1 = PHI %0, %bb.0
27 %2:sreg_64_xexec = COPY %1
28 %3:vgpr_32 = V_CNDMASK_B32_e64 0, 0, 0, 1, %2, implicit $exec