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

#if __BITINT_MAXWIDTH__ >= 129
_BitInt(129) v;

void
foo (_BitInt(129) a, int i)
{
  __label__  l1, l2;
  i &= 1;
  void *p[] = { &&l1, &&l2 };
l1:
  a %= 3;
  v = a;
  i = !i;
  goto *(p[i]);
l2:;
}
#else
int i;
#endif