Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
152 | 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 } |