libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / bitint-54.c
blobf23d4e1c2f6b134d6ed80843f4e5095c878a4fae
1 /* PR tree-optimization/113003 */
2 /* { dg-do compile { target bitint } } */
3 /* { dg-options "-std=c23 -O2" } */
5 #if __BITINT_MAXWIDTH__ >= 131
6 int
7 foo (_BitInt(7) x)
9 return __builtin_mul_overflow_p (x, 1046555807606105294475452482332716433408wb, 0);
12 #ifdef __SIZEOF_INT128__
13 int
14 bar (unsigned __int128 x)
16 return __builtin_sub_overflow_p (340282366920938463463374607431768211457uwb, x, 0);
18 #endif
19 #else
20 int i;
21 #endif