xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/branch-on-bool.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*f4a2713aSLionel Sambuc // RUN: %clang %s -O0 -emit-llvm -S -o - | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc void foo();
4*f4a2713aSLionel Sambuc void bar();
5*f4a2713aSLionel Sambuc 
fold_if(int a,int b)6*f4a2713aSLionel Sambuc void fold_if(int a, int b) {
7*f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @fold_if(
8*f4a2713aSLionel Sambuc   // CHECK-NOT: = phi
9*f4a2713aSLionel Sambuc   // CHECK: }
10*f4a2713aSLionel Sambuc   if (a && b)
11*f4a2713aSLionel Sambuc     foo();
12*f4a2713aSLionel Sambuc   else
13*f4a2713aSLionel Sambuc     bar();
14*f4a2713aSLionel Sambuc }
15