Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/pr94783.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
/* PR tree-optimization/94783 */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-final { scan-tree-dump "ABS_EXPR" "optimized" } } */ /* { dg-final { scan-tree-dump-not " >> 31" "optimized" } } */ int foo (int v) { int mask = v >> (__SIZEOF_INT__ * __CHAR_BIT__ - 1); return (v + mask) ^ mask; }