1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass=simple-register-coalescing -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: successors: %bb.2(0x80000000)
14 ; GCN: undef %1.sub0:vreg_128 = IMPLICIT_DEF
15 ; GCN: %1.sub1:vreg_128 = IMPLICIT_DEF
18 ; GCN: successors: %bb.2(0x80000000)
19 ; GCN: [[DEF:%[0-9]+]]:vreg_128 = IMPLICIT_DEF
21 ; GCN: [[DEF]].sub2:vreg_128 = COPY undef %3:sreg_32
22 ; GCN: S_ENDPGM 0, implicit [[DEF]]
24 undef %0.sub0:vreg_128 = IMPLICIT_DEF
25 %0.sub1:vreg_128 = IMPLICIT_DEF
27 %2:vreg_128 = COPY killed %0
31 %1:vreg_128 = COPY killed undef %1
34 %1.sub2:vreg_128 = COPY undef %3:sreg_32
35 %2:vreg_128 = COPY killed %1
36 %4:vreg_128 = COPY killed %2
37 S_ENDPGM 0, implicit killed %4