S/390: Allow immediates in loc expander
[official-gcc.git] / gcc / testsuite / gcc.dg / pr24574.c
blob93ce0f68429afda35b45aac86a01bb803b73e117
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-phiopt2" } */
4 int f0(int i)
6 if (i == 0) return 0;
7 return i/10;
9 int f1(int i)
11 return i?i/10:0;
14 int f2(int i)
16 if (i == 0) return 0;
17 return i%10;
19 int f3(int i)
21 return i?i%10:0;
24 int f4(int i)
26 if (i == 0) return 0;
27 return i<<10;
29 int f5(int i)
31 return i?i<<10:0;
34 /* We should if-convert all functions to carry out the operation
35 unconditionally. */
36 /* { dg-final { scan-tree-dump-not "= PHI" "phiopt2" } } */