Debian Codegraph @

gcc/testsuite/gcc.dg/torture/bitint-77.c

raw
1 /* PR tree-optimization/119722 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-O2 -fno-tree-forwprop -fno-tree-copy-prop -fno-tree-fre" } */
4
5 #if __BITINT_MAXWIDTH__ >= 33300
6 unsigned _BitInt(33300) g;
7
8 unsigned
9 foo (long c)
10 {
11 unsigned _BitInt(33300) b
12 = __builtin_stdc_rotate_left ((unsigned _BitInt(13)) 8, c);
13 return ((unsigned _BitInt(50)) (g >> 50)
14 + ({ unsigned _BitInt(300) unused; b; }));
15 }
16 #endif
17
18 int
19 main ()
20 {
21 #if __BITINT_MAXWIDTH__ >= 33300
22 unsigned x = foo (0);
23 if (x != 8)
24 __builtin_abort ();
25 #endif
26 }