Debian Codegraph @

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

raw
1 /* PR middle-end/115887 */
2 /* { dg-do compile { target { bitint && int128 } } } */
3 /* { dg-options "-O -fnon-call-exceptions -finstrument-functions -w" } */
4
5 float f;
6 #if __BITINT_MAXWIDTH__ >= 1024
7 #define N1024 1024
8 #define N127 127
9 #define N256 256
10 #else
11 #define N1024 64
12 #define N127 64
13 #define N256 64
14 #endif
15
16 _BitInt(N1024) a;
17
18 static inline void
19 bar (_BitInt(N127) b, _BitInt(N256) c, int,
20 int, int, int, int, int, int, int, int,
21 int, int, int, int, int, int, int, int,
22 int *)
23 {
24 b %= 0;
25 do
26 c -= *(short *) 0;
27 while (__builtin_add_overflow_p (a, 0, 0));
28 __int128 d = b + c + f;
29 }
30
31 void
32 foo (void)
33 {
34 int x;
35 bar (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, &x);
36 while (x)
37 ;
38 }