diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2008-11-14 12:02:17 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2008-11-14 12:02:17 +0000 |
commit | 87deeba6090a658a2861173e875d2d7c8f776c4e (patch) | |
tree | 505cba68c717618eb71a9b1e3e41fd940ec144d2 | |
parent | 11cc65d49a89837127a781bf59733c91a969a848 (diff) | |
download | gcc-87deeba6090a658a2861173e875d2d7c8f776c4e.zip gcc-87deeba6090a658a2861173e875d2d7c8f776c4e.tar.gz gcc-87deeba6090a658a2861173e875d2d7c8f776c4e.tar.bz2 |
pr37514.c: Remove.
* gcc.target/sh/pr37514.c: Remove.
From-SVN: r141856
-rw-r--r-- | gcc/testsuite/gcc.target/sh/pr37514.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/gcc/testsuite/gcc.target/sh/pr37514.c b/gcc/testsuite/gcc.target/sh/pr37514.c deleted file mode 100644 index fa68ebe..0000000 --- a/gcc/testsuite/gcc.target/sh/pr37514.c +++ /dev/null @@ -1,65 +0,0 @@ -/* This is essentially gcc.c-torture/execute/20021120-1.c run with - -O3 -fomit-frame-pointer -fira-share-spill-slots. */ -/* { dg-do run { target "sh*-*-*" } } */ -/* { dg-options "-O3 -fomit-frame-pointer -fira-share-spill-slots" } */ - -/* Macros to emit "L Nxx R" for each octal number xx between 000 and 037. */ -#define OP1(L, N, R, I, J) L N##I##J R -#define OP2(L, N, R, I) \ - OP1(L, N, R, 0, I), OP1(L, N, R, 1, I), \ - OP1(L, N, R, 2, I), OP1(L, N, R, 3, I) -#define OP(L, N, R) \ - OP2(L, N, R, 0), OP2(L, N, R, 1), OP2(L, N, R, 2), OP2(L, N, R, 3), \ - OP2(L, N, R, 4), OP2(L, N, R, 5), OP2(L, N, R, 6), OP2(L, N, R, 7) - -/* Declare 32 unique variables with prefix N. */ -#define DECLARE(N) OP (, N,) - -/* Copy 32 variables with prefix N from the array at ADDR. - Leave ADDR pointing to the end of the array. */ -#define COPYIN(N, ADDR) OP (, N, = *(ADDR++)) - -/* Likewise, but copy the other way. */ -#define COPYOUT(N, ADDR) OP (*(ADDR++) =, N,) - -/* Add the contents of the array at ADDR to 32 variables with prefix N. - Leave ADDR pointing to the end of the array. */ -#define ADD(N, ADDR) OP (, N, += *(ADDR++)) - -volatile double gd[32]; -volatile float gf[32]; - -extern void abort (void); - -static void foo (int n) -{ - double DECLARE(d); - float DECLARE(f); - volatile double *pd; - volatile float *pf; - int i; - - pd = gd; COPYIN (d, pd); - for (i = 0; i < n; i++) - { - pf = gf; COPYIN (f, pf); - pd = gd; ADD (d, pd); - pd = gd; ADD (d, pd); - pd = gd; ADD (d, pd); - pf = gf; COPYOUT (f, pf); - } - pd = gd; COPYOUT (d, pd); -} - -int main () -{ - int i; - - for (i = 0; i < 32; i++) - gd[i] = i, gf[i] = i; - foo (1); - for (i = 0; i < 32; i++) - if (gd[i] != i * 4 || gf[i] != i) - abort (); - return 0; -} |