libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr87287.c
blobcba4f43ded9aed94db9abd2aea60aeb7a7d9c03b
1 /* PR tree-optimization/87287 */
2 /* { dg-options "-O2 -fdump-tree-cddce1" } */
3 /* { dg-final { scan-tree-dump-not " % 16" "cddce1" } } */
4 /* { dg-final { scan-tree-dump-times " & 15" 4 "cddce1" } } */
6 void f0 (void);
8 int
9 f1 (int x)
11 return x % 16 == 0;
14 int
15 f2 (int x)
17 int y = x % 16;
18 return y != 0;
21 void
22 f3 (int x)
24 if (x % 16 != 0)
25 f0 ();
28 void
29 f4 (int x)
31 int y = x % 16;
32 if (y == 0)
33 f0 ();