libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr93156.c
blobb8c2af3ed484e1736e39a26588fc370c80be3c87
1 /* PR tree-optimization/93156 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump-times "return 0;" 3 "optimized" } } */
6 int
7 foo (int x)
9 return (x * x) & 2;
12 unsigned long long
13 bar (unsigned long long x)
15 return (x * x) & 2;
18 int
19 baz (int x)
21 x &= -2;
22 return (x * x) & 3;