Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr97386-1.c

raw
1 /* PR rtl-optimization/97386 */
2
3 __attribute__((noipa)) unsigned char
4 foo (unsigned int c)
5 {
6 return __builtin_bswap16 ((unsigned long long) (0xccccLLU << c | 0xccccLLU >> ((-c) & 63)));
7 }
8
9 int
10 main ()
11 {
12 unsigned char x = foo (0);
13 if (__CHAR_BIT__ == 8 && __SIZEOF_SHORT__ == 2 && x != 0xcc)
14 __builtin_abort ();
15 return 0;
16 }