Debian Codegraph @

gcc/testsuite/gcc.dg/bitint-124.c

raw
1 /* PR tree-optimization/121131 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-O2" } */
4
5 #if __BITINT_MAXWIDTH__ >= 156
6 struct A { _BitInt(156) b : 135; };
7
8 static inline _BitInt(156)
9 foo (struct A *x)
10 {
11 return x[1].b;
12 }
13
14 __attribute__((noipa)) _BitInt(156)
15 bar (void)
16 {
17 struct A a[] = { 1, 1, -13055525270329736316393717310914023773847wb,
18 1, 1, 1, 1, 1, 1, 1, 1, 1 };
19 return foo (&a[1]);
20 }
21 #endif
22
23 int
24 main ()
25 {
26 #if __BITINT_MAXWIDTH__ >= 156
27 if (bar () != -13055525270329736316393717310914023773847wb)
28 __builtin_abort ();
29 #endif
30 }