aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr109940.c
blob: 55082d0e3124a9b35607488f6702387a440656fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-additional-options "-march=armv9-a" { target aarch64*-*-* } } */

int a;
int *b;
void
c (int *d) { *d = a; }

int
e(int d, int f) {
  if (d <= 1)
    return 1;
  int g = d / 2;
  for (int h = 0; h < g; h++)
    if (f == (__INTPTR_TYPE__)b > b[h])
      c(&b[h]);
  e(g, f);
  e(g, f);
}