xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2008-11-08-InstCombineSelect.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -O2 -o -
2*f4a2713aSLionel Sambuc // PR3028
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc int g_187;
5*f4a2713aSLionel Sambuc int g_204;
6*f4a2713aSLionel Sambuc int g_434;
7*f4a2713aSLionel Sambuc 
func_89(void)8*f4a2713aSLionel Sambuc int func_89 (void)
9*f4a2713aSLionel Sambuc {
10*f4a2713aSLionel Sambuc   return 1;
11*f4a2713aSLionel Sambuc }
12*f4a2713aSLionel Sambuc 
func_20(int p_22)13*f4a2713aSLionel Sambuc void func_20 (int p_22)
14*f4a2713aSLionel Sambuc {
15*f4a2713aSLionel Sambuc   if (1 & p_22 | g_204 & (1 < g_187) - func_89 ())
16*f4a2713aSLionel Sambuc     g_434 = 1;
17*f4a2713aSLionel Sambuc }
18