150
|
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
|
|
3
|
|
4 # Test that the new IMPLICIT_DEF is inserted in the correct location.
|
|
5 ---
|
|
6 name: test_undef
|
|
7 tracksRegLiveness: true
|
|
8 body: |
|
|
9 ; GCN-LABEL: name: test_undef
|
|
10 ; GCN: bb.0:
|
236
|
11 ; GCN-NEXT: successors: %bb.1(0x80000000)
|
|
12 ; GCN-NEXT: {{ $}}
|
|
13 ; GCN-NEXT: S_BRANCH %bb.1
|
|
14 ; GCN-NEXT: {{ $}}
|
|
15 ; GCN-NEXT: 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
|
150
|
19 bb.0:
|
|
20 successors: %bb.1
|
|
21
|
|
22 %0:vreg_1 = IMPLICIT_DEF
|
|
23 S_BRANCH %bb.1
|
|
24
|
|
25 bb.1:
|
|
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
|
|
29
|
|
30 ...
|