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