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: successors: %bb.1(0x80000000)
14 ; GCN: [[DEF:%[0-9]+]]:sreg_64 = IMPLICIT_DEF
15 ; GCN: [[COPY:%[0-9]+]]:sreg_64_xexec = COPY [[DEF]]
16 ; GCN: [[V_CNDMASK_B32_e64_:%[0-9]+]]:vgpr_32 = V_CNDMASK_B32_e64 0, 0, 0, 1, [[COPY]], implicit $exec
20 %0:vreg_1 = IMPLICIT_DEF
24 %1:vreg_1 = PHI %0, %bb.0
25 %2:sreg_64_xexec = COPY %1
26 %3:vgpr_32 = V_CNDMASK_B32_e64 0, 0, 0, 1, %2, implicit $exec