summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/20020116-2.c
blob: 828ffff264ed9041b98a54124062214317244962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-mcpu=supersparc" } */

/* This testcase ICEd on sparc64 because -mcpu=supersparc and implicit
   -m64 resulted in MASK_V8 and MASK_V9 to be set at the same time.  */

void bar (long *x, long *y);

void foo (int x, long *y, long *z)
{
  int i;

  for (i = x - 1; i >= 0; i--)
    {
      bar (z + i * 3 + 1, y);
      bar (z + i * 3 + 2, y);
    }
}