1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -o - -run-pass=block-placement -mcpu=gfx1010 -mattr=-inst-fwd-prefetch-bug -verify-machineinstrs %s | FileCheck -check-prefixes=GFX10 %s
3 # RUN: llc -mtriple=amdgcn -o - -run-pass=block-placement -mcpu=gfx1100 -mattr=-inst-fwd-prefetch-bug -verify-machineinstrs %s | FileCheck -check-prefixes=GFX11 %s
6 # Assertion `Out && "Header of loop has no predecessors from outside loop?"
9 name: loop_header_nopred
11 ; GFX10-LABEL: name: loop_header_nopred
13 ; GFX10-NEXT: successors: %bb.2(0x80000000)
15 ; GFX10-NEXT: S_BRANCH %bb.2
17 ; GFX10-NEXT: bb.1 (align 64):
18 ; GFX10-NEXT: successors: %bb.7(0x04000000), %bb.2(0x7c000000)
20 ; GFX10-NEXT: S_CBRANCH_VCCNZ %bb.7, implicit $vcc_lo
23 ; GFX10-NEXT: successors: %bb.5(0x40000000), %bb.1(0x40000000)
25 ; GFX10-NEXT: S_CBRANCH_EXECZ %bb.1, implicit $exec
28 ; GFX10-NEXT: successors: %bb.1(0x04000000), %bb.5(0x7c000000)
41 ; GFX10-NEXT: S_CBRANCH_EXECZ %bb.5, implicit $exec
42 ; GFX10-NEXT: S_BRANCH %bb.1
45 ; GFX10-NEXT: S_ENDPGM 0
47 ; GFX11-LABEL: name: loop_header_nopred
49 ; GFX11-NEXT: successors: %bb.2(0x80000000)
51 ; GFX11-NEXT: S_BRANCH %bb.2
54 ; GFX11-NEXT: successors: %bb.7(0x04000000), %bb.2(0x7c000000)
56 ; GFX11-NEXT: S_CBRANCH_VCCNZ %bb.7, implicit $vcc_lo
59 ; GFX11-NEXT: successors: %bb.5(0x40000000), %bb.1(0x40000000)
61 ; GFX11-NEXT: S_CBRANCH_EXECZ %bb.1, implicit $exec
64 ; GFX11-NEXT: successors: %bb.1(0x04000000), %bb.5(0x7c000000)
77 ; GFX11-NEXT: S_CBRANCH_EXECZ %bb.5, implicit $exec
78 ; GFX11-NEXT: S_BRANCH %bb.1
81 ; GFX11-NEXT: S_ENDPGM 0
83 successors: %bb.1(0x80000000)
86 successors: %bb.2(0x40000000), %bb.3(0x40000000)
88 S_CBRANCH_VCCZ %bb.3, implicit $vcc
92 successors: %bb.3(0x80000000)
95 successors: %bb.4(0x40000000), %bb.6(0x40000000)
97 S_CBRANCH_EXECZ %bb.6, implicit $exec
101 successors: %bb.5(0x04000000), %bb.4(0x7c000000)
114 S_CBRANCH_EXECZ %bb.4, implicit $exec
117 successors: %bb.6(0x80000000)
120 successors: %bb.7(0x04000000), %bb.1(0x7c000000)
122 S_CBRANCH_VCCZ %bb.1, implicit $vcc