aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-122.c
blob: c7919698b573895005e2f65f8a995bcece12686a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/116093 */
/* { dg-do run { target bitint } } */
/* { dg-options "-Og -ftree-vrp -fno-tree-dce" } */

#if __BITINT_MAXWIDTH__ >= 129
char
foo (int a, _BitInt (129) b, char c)
{
  return c << (5 / b % (0xdb75dbf5 | a));
}
#endif

int
main ()
{
#if __BITINT_MAXWIDTH__ >= 129
  if (foo (0, 6, 1) != 1)
    __builtin_abort ();
#endif
}