aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-54.c
blob: f23d4e1c2f6b134d6ed80843f4e5095c878a4fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR tree-optimization/113003 */
/* { dg-do compile { target bitint } } */
/* { dg-options "-std=c23 -O2" } */

#if __BITINT_MAXWIDTH__ >= 131
int
foo (_BitInt(7) x)
{
  return __builtin_mul_overflow_p (x, 1046555807606105294475452482332716433408wb, 0);
}

#ifdef __SIZEOF_INT128__
int
bar (unsigned __int128 x)
{
  return __builtin_sub_overflow_p (340282366920938463463374607431768211457uwb, x, 0);
}
#endif
#else
int i;
#endif