1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass=register-coalescer -o - %s | FileCheck -check-prefix=GCN %s
4 # Test used to crash with message:
5 # JoinVals::ConflictResolution (anonymous namespace)::JoinVals::analyzeValue(unsigned int, (anonymous namespace)::JoinVals &): Assertion `DefMI != nullptr' failed
9 tracksRegLiveness: true
11 ; GCN-LABEL: name: test
13 ; GCN-NEXT: successors: %bb.2(0x80000000)
15 ; GCN-NEXT: undef %1.sub0:vreg_128 = IMPLICIT_DEF
16 ; GCN-NEXT: %1.sub1:vreg_128 = IMPLICIT_DEF
17 ; GCN-NEXT: S_BRANCH %bb.2
20 ; GCN-NEXT: successors: %bb.2(0x80000000)
22 ; GCN-NEXT: [[DEF:%[0-9]+]]:vreg_128 = IMPLICIT_DEF
25 ; GCN-NEXT: [[DEF]].sub2:vreg_128 = COPY undef %3:sreg_32
26 ; GCN-NEXT: S_ENDPGM 0, implicit [[DEF]]
28 undef %0.sub0:vreg_128 = IMPLICIT_DEF
29 %0.sub1:vreg_128 = IMPLICIT_DEF
31 %2:vreg_128 = COPY killed %0
35 %1:vreg_128 = COPY killed undef %1
38 %1.sub2:vreg_128 = COPY undef %3:sreg_32
39 %2:vreg_128 = COPY killed %1
40 %4:vreg_128 = COPY killed %2
41 S_ENDPGM 0, implicit killed %4