aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-52.c
blob: befd19e8d2a310f2a26483bc1fe46e98a6be0b7c (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/112902 */
/* { dg-do compile { target bitint } } */
/* { dg-options "-std=c23 -O2" } */

double c;
#if __BITINT_MAXWIDTH__ >= 2048
_BitInt (512) a;
_BitInt (2048) b;

void
foo (void)
{
  b = __builtin_mul_overflow_p (40, (_BitInt (512)) (-b * a), 0);
}


void
bar (void)
{
  c -= (unsigned _BitInt (512)) (a | a << b);
}
#endif