libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / bitint-109.c
blob84c4314cdf9dc05eec60daa84ae2fb25467710b1
1 /* PR middle-end/116486 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-O2 -fno-tree-ccp" } */
5 unsigned u;
7 #if __BITINT_MAXWIDTH__ >= 129
8 #define N 0x100000000000000000000000000000000uwb
9 #else
10 #define N 0xffffffffffffffffuwb
11 #endif
13 int
14 foo (void)
16 return __builtin_stdc_first_leading_one (u / N);
19 int
20 main ()
22 int x = foo ();
23 if (x)
24 __builtin_abort ();