diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/sparc/20020116-2.c')
-rw-r--r-- | gcc/testsuite/gcc.target/sparc/20020116-2.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/sparc/20020116-2.c b/gcc/testsuite/gcc.target/sparc/20020116-2.c new file mode 100644 index 000000000..828ffff26 --- /dev/null +++ b/gcc/testsuite/gcc.target/sparc/20020116-2.c @@ -0,0 +1,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); + } +} |