libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr31531-2.c
blob865ea2922150f2b0f3abec4da84fa803afed77d9
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* PR tree-optimization/31531 */
5 int f0(unsigned x, unsigned t)
7 x = ~x;
8 t = ~t;
9 int xx = x;
10 int tt = t;
11 return tt < xx;
14 int f1(unsigned x, int t)
16 x = ~x;
17 t = ~t;
18 int xx = x;
19 int tt = t;
20 return tt < xx;
23 int f2(int x, unsigned t)
25 x = ~x;
26 t = ~t;
27 int xx = x;
28 int tt = t;
29 return tt < xx;
33 /* We should be able to remove all ~ from the above functions. */
34 /* { dg-final { scan-tree-dump-times "~" 0 "optimized"} } */