1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -o - -run-pass=block-placement -mcpu=gfx1010 -mattr=-inst-fwd-prefetch-bug -verify-machineinstrs %s | FileCheck -check-prefixes=GFX10 %s
3 # RUN: llc -march=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
46 ; GFX11-LABEL: name: loop_header_nopred
48 ; GFX11-NEXT: successors: %bb.2(0x80000000)
50 ; GFX11-NEXT: S_BRANCH %bb.2
53 ; GFX11-NEXT: successors: %bb.7(0x04000000), %bb.2(0x7c000000)
55 ; GFX11-NEXT: S_CBRANCH_VCCNZ %bb.7, implicit $vcc_lo
58 ; GFX11-NEXT: successors: %bb.5(0x40000000), %bb.1(0x40000000)
60 ; GFX11-NEXT: S_CBRANCH_EXECZ %bb.1, implicit $exec
63 ; GFX11-NEXT: successors: %bb.1(0x04000000), %bb.5(0x7c000000)
76 ; GFX11-NEXT: S_CBRANCH_EXECZ %bb.5, implicit $exec
77 ; GFX11-NEXT: S_BRANCH %bb.1
80 ; GFX11-NEXT: S_ENDPGM 0
82 successors: %bb.1(0x80000000)
85 successors: %bb.2(0x40000000), %bb.3(0x40000000)
87 S_CBRANCH_VCCZ %bb.3, implicit $vcc
91 successors: %bb.3(0x80000000)
94 successors: %bb.4(0x40000000), %bb.6(0x40000000)
96 S_CBRANCH_EXECZ %bb.6, implicit $exec
100 successors: %bb.5(0x04000000), %bb.4(0x7c000000)
113 S_CBRANCH_EXECZ %bb.4, implicit $exec
116 successors: %bb.6(0x80000000)
119 successors: %bb.7(0x04000000), %bb.1(0x7c000000)
121 S_CBRANCH_VCCZ %bb.1, implicit $vcc