Debian Codegraph @

gcc/testsuite/gcc.dg/fold-mul-and-lshift-2.c

raw
1 /* { dg-do compile { target int32 } } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump { >> 15;} "optimized" } } */
4 /* { dg-final { scan-tree-dump { \* 32768;} "optimized" } } */
5
6 unsigned int
7 f1 (unsigned int x)
8 {
9 x >>= 15;
10 short y = x;
11 y &= -2;
12 x = y;
13 x *= 1 << 15;
14 return x;
15 }