aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr88594.c
blob: 6e3f2994056a73e470ae976e9eea8665696c3726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/88594 */
/* { dg-do compile { target int128 } } */
/* { dg-options "-O2 -fno-tree-dominator-opts -fno-tree-forwprop -fno-tree-vrp" } */

__int128
foo (__int128 x, __int128 *y)
{
  int a;
  __int128 z, r;
  for (a = 0; a < 17; ++a)
    ;
  z = x / a;
  r = x % a;
  *y = z;
  return r;
}