summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/930930-1.c
blob: 68fdbbfe8518fb348168d3074899167a266be736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
long *wm_TR;
long *wm_HB;
long *wm_SPB;

long mem[100];

f (mr_TR, mr_SPB, mr_HB, reg1, reg2)
     long *mr_TR;
     long *mr_SPB;
     long *mr_HB;
     long *reg1;
     long *reg2;
{
  long *x = mr_TR;

  for (;;)
    {
      if (reg1 < reg2)
	goto out;
      if ((long *) *reg1 < mr_HB && (long *) *reg1 >= mr_SPB)
	*--mr_TR = *reg1;
      reg1--;
    }
 out:

  if (x != mr_TR)
    abort ();
}

main ()
{
  mem[99] = (long) mem;
  f (mem + 100, mem + 6, mem + 8, mem + 99, mem + 99);
  exit (0);
}