Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr94783.c

raw
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" } } */
6
7 int
8 foo (int v)
9 {
10 int mask = v >> (__SIZEOF_INT__ * __CHAR_BIT__ - 1);
11 return (v + mask) ^ mask;
12 }