Debian Codegraph @

gcc/testsuite/gcc.dg/torture/bitint-59.c

raw
1 /* PR tree-optimization/114038 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
6
7 #if __BITINT_MAXWIDTH__ >= 129
8 int
9 foo (unsigned _BitInt(63) x, unsigned _BitInt(129) y)
10 {
11 return __builtin_mul_overflow_p (y, x, 0);
12 }
13 #endif
14
15 int
16 main ()
17 {
18 #if __BITINT_MAXWIDTH__ >= 129
19 if (!foo (90, 0x80000000000000000000000000000000uwb))
20 __builtin_abort ();
21 #endif
22 }