1 ; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=basic-blocks --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: FileCheck %s < %t
4 ; CHECK-INTERESTINGNESS: store i32 0,
5 ; CHECK-INTERESTINGNESS: store i32 1,
8 ; CHECK-NEXT: br label %bb10
11 ; CHECK-NEXT: br label %bb11
14 ; CHECK-NEXT: br label %bb12
17 ; CHECK-NEXT: switch i32 %arg, label %bb13 [
18 ; CHECK-NEXT: i32 1, label %bb13
19 ; CHECK-NEXT: i32 0, label %bb18
23 ; CHECK-NEXT: br label %bb17
26 ; CHECK-NEXT: store i32 0
27 ; CHECK-NEXT: br label %bb17
30 ; CHECK-NEXT: store i32 1
31 ; CHECK-NEXT: br label %bb18
32 define amdgpu_kernel void @wibble(i32 %arg, i1 %arg1, i1 %arg2) {
43 switch i32 %arg, label %bb13 [
48 bb13: ; preds = %bb12, %bb12
49 br i1 %arg1, label %bb14, label %bb17
51 bb14: ; preds = %bb15, %bb13
52 %tmp = phi i32 [ 0, %bb15 ], [ 0, %bb13 ]
56 %tmp16 = zext i32 %tmp to i64
57 br i1 %arg2, label %bb17, label %bb14
59 bb17: ; preds = %bb17, %bb15, %bb13
60 store i32 0, ptr addrspace(3) null
63 bb18: ; preds = %bb18, %bb12
64 store i32 1, ptr addrspace(3) null