1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 2
2 # RUN: llc -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs -run-pass liveintervals -o - %s | FileCheck -check-prefixes=GCN %s
4 # This test simply checks that liveintervals pass verification.
7 name: split_critical_edge_subranges
8 tracksRegLiveness: true
10 ; GCN-LABEL: name: split_critical_edge_subranges
12 ; GCN-NEXT: successors: %bb.3(0x40000000), %bb.1(0x40000000)
14 ; GCN-NEXT: %coord:vreg_64 = IMPLICIT_DEF
15 ; GCN-NEXT: %desc:sgpr_256 = IMPLICIT_DEF
16 ; GCN-NEXT: %c0:sreg_32 = IMPLICIT_DEF
17 ; GCN-NEXT: %c1:sreg_32 = IMPLICIT_DEF
18 ; GCN-NEXT: %const:vgpr_32 = IMPLICIT_DEF
19 ; GCN-NEXT: %load:vreg_64 = IMAGE_LOAD_V2_V2_gfx11 %coord, %desc, 3, 1, -1, 0, 0, 0, 0, 0, 0, implicit $exec :: (dereferenceable load (s64), align 16, addrspace 4)
20 ; GCN-NEXT: %s0a:vgpr_32 = COPY %load.sub0
21 ; GCN-NEXT: %s0b:vgpr_32 = COPY %load.sub1
22 ; GCN-NEXT: S_CMP_EQ_U32 %c0, %c1, implicit-def $scc
23 ; GCN-NEXT: S_CBRANCH_SCC1 %bb.3, implicit $scc
24 ; GCN-NEXT: S_BRANCH %bb.1
27 ; GCN-NEXT: successors: %bb.3(0x80000000)
29 ; GCN-NEXT: %s0c:vgpr_32 = V_ADD_F32_e64 0, %s0a, 0, %const, 0, 0, implicit $mode, implicit $exec
30 ; GCN-NEXT: %s0d:vgpr_32 = V_ADD_F32_e64 0, %s0b, 0, %const, 0, 0, implicit $mode, implicit $exec
31 ; GCN-NEXT: S_BRANCH %bb.3
35 ; GCN-NEXT: S_ENDPGM 0
38 ; GCN-NEXT: successors: %bb.4(0x80000000)
40 ; GCN-NEXT: %phi0:vgpr_32 = PHI %s0a, %bb.0, %s0c, %bb.1
41 ; GCN-NEXT: %phi1:vgpr_32 = PHI %s0b, %bb.0, %s0d, %bb.1
42 ; GCN-NEXT: S_BRANCH %bb.4
45 ; GCN-NEXT: S_ENDPGM 0, implicit %phi0, implicit %phi1
47 %coord:vreg_64 = IMPLICIT_DEF
48 %desc:sgpr_256 = IMPLICIT_DEF
49 %c0:sreg_32 = IMPLICIT_DEF
50 %c1:sreg_32 = IMPLICIT_DEF
51 %const:vgpr_32 = IMPLICIT_DEF
52 %load:vreg_64 = IMAGE_LOAD_V2_V2_gfx11 %coord:vreg_64, killed %desc:sgpr_256, 3, 1, -1, 0, 0, 0, 0, 0, 0, implicit $exec :: (dereferenceable load (s64), align 16, addrspace 4)
53 %s0a:vgpr_32 = COPY %load.sub0:vreg_64
54 %s0b:vgpr_32 = COPY %load.sub1:vreg_64
55 S_CMP_EQ_U32 killed %c0:sreg_32, killed %c1:sreg_32, implicit-def $scc
56 S_CBRANCH_SCC1 %bb.3, implicit $scc
60 %s0c:vgpr_32 = V_ADD_F32_e64 0, %s0a:vgpr_32, 0, %const:vgpr_32, 0, 0, implicit $mode, implicit $exec
61 %s0d:vgpr_32 = V_ADD_F32_e64 0, %s0b:vgpr_32, 0, %const:vgpr_32, 0, 0, implicit $mode, implicit $exec
69 %phi0:vgpr_32 = PHI %s0a:vgpr_32, %bb.0, %s0c:vgpr_32, %bb.1
70 %phi1:vgpr_32 = PHI %s0b:vgpr_32, %bb.0, %s0d:vgpr_32, %bb.1
74 S_ENDPGM 0, implicit %phi0:vgpr_32, implicit %phi1:vgpr_32