1 # REQUIRES: amdgpu-registered-target
2 # RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir --delta-passes=instructions -mtriple=amdgcn-amd-amdhsa --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
3 # RUN: FileCheck --match-full-lines --check-prefix=RESULT %s < %t
5 # CHECK-INTERESTINGNESS: V_MOV_B32
9 # RESULT: %{{[0-9]+}}:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
11 # RESULT: bb.1 (ir-block-address-taken %ir-block.exitblock, align 8):
12 # RESULT: bb.2 (landing-pad, align 16):
13 # RESULT: bb.3 (inlineasm-br-indirect-target):
14 # RESULT: bb.4 (ehfunclet-entry):
15 # RESULT: bb.5 (bbsections 1):
16 # RESULT: bb.6 (bbsections 2):
17 # RESULT: bb.7 (bbsections 3):
19 # RESULT-NEXT: successors: %bb.9(0x66666666), %bb.10(0x1999999a)
21 # RESULT: bb.10.exitblock:
22 # RESULT: bb.11 (machine-block-address-taken):
25 define void @func(i32 %size) {
38 exposesReturnsTwice: true
43 tracksRegLiveness: true
45 failsVerification: true
46 tracksDebugUserValues: true
50 %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
52 bb.1 (ir-block-address-taken %ir-block.exitblock, align 8):
54 bb.2 (landing-pad, align 16):
56 bb.3 (inlineasm-br-indirect-target):
58 bb.4 (ehfunclet-entry):
65 successors: %bb.9(4), %bb.10(1)
66 S_CBRANCH_SCC1 %bb.10, implicit undef $scc
72 S_ENDPGM 0, implicit %0
74 bb.11 (machine-block-address-taken):