libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr94783.c
blobc52f657520e3f4c2dc98300c71b6cd78862e0081
1 /* PR tree-optimization/94783 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump "ABS_EXPR" "optimized" } } */
5 /* { dg-final { scan-tree-dump-not " >> 31" "optimized" } } */
7 int
8 foo (int v)
10 int mask = v >> (__SIZEOF_INT__ * __CHAR_BIT__ - 1);
11 return (v + mask) ^ mask;