libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / bitint-108.c
blob170d4bdf09ca060a4e4aeb74a49da44b60d298e6
1 /* PR middle-end/115887 */
2 /* { dg-do compile { target { bitint && int128 } } } */
3 /* { dg-options "-O -fnon-call-exceptions -finstrument-functions -w" } */
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
16 _BitInt(N1024) a;
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 *)
24 b %= 0;
26 c -= *(short *) 0;
27 while (__builtin_add_overflow_p (a, 0, 0));
28 __int128 d = b + c + f;
31 void
32 foo (void)
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)