comparison 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
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
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 }