Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr106523.c

raw
1 /* PR tree-optimization/106523 */
2
3 __attribute__((noipa)) unsigned char
4 f7 (unsigned char x, unsigned int y)
5 {
6 unsigned int t = x;
7 return (t << y) | (t >> ((-y) & 7));
8 }
9
10 int
11 main ()
12 {
13 if (__CHAR_BIT__ != 8 || __SIZEOF_INT__ != 4)
14 return 0;
15
16 volatile unsigned char x = 152;
17 volatile unsigned int y = 19;
18 if (f7 (x, y) != 4)
19 __builtin_abort ();
20
21 return 0;
22 }