From: Andy Hutchinson Date: Tue, 27 May 2008 22:20:10 +0000 (+0000) Subject: data-dep-1.c: Skip test for avr-*-* too much code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f7e9e4e695ff90fd733a90197d1369e8e849ab1;p=gcc.git data-dep-1.c: Skip test for avr-*-* too much code. * gcc.dg/tree-ssa/data-dep-1.c: Skip test for avr-*-* too much code. * gcc.dg/tree-ssa/ldist-3.c: Ditto. * gcc.dg/tree-ssa/ldist-5.c: Ditto. * gcc.dg/tree-ssa/ifc-20040816-2 .c: Adjust for int size < 4 bytes. * gcc.dg/tree-ssa/pr32540-1.c: Ditto. * gcc.dg/tree-ssa/pr32540-2.c: Ditto. * gcc.dg/tree-ssa/ssa-lim-5.c: Ditto. * gcc.dg/tree-ssa/pr23115.c: Adjust test for double size < 8 bytes. From-SVN: r136058 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 59bf3a93809..814970176cd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2008-05-27 Andy Hutchinson + + * gcc.dg/tree-ssa/data-dep-1.c: Skip test for avr-*-* too much code. + * gcc.dg/tree-ssa/ldist-3.c: Ditto. + * gcc.dg/tree-ssa/ldist-5.c: Ditto. + * gcc.dg/tree-ssa/ifc-20040816-2 .c: Adjust for int size < 4 bytes. + * gcc.dg/tree-ssa/pr32540-1.c: Ditto. + * gcc.dg/tree-ssa/pr32540-2.c: Ditto. + * gcc.dg/tree-ssa/ssa-lim-5.c: Ditto. + * gcc.dg/tree-ssa/pr23115.c: Adjust test for double size < 8 bytes. + 2008-05-27 H.J. Lu PR target/35767 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c b/gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c index b0225e13ebc..5eb71d9be9e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */ /* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */ int foo (int n, int m) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c index 49cca20857d..f37a4d3361a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c @@ -11,7 +11,11 @@ void foo(const int * __restrict__ zr_in, { unsigned int pi; int tmp_r, tmp_i, tmp_k; +#if __SIZEOF_INT__ >= 4 for (pi = 0; pi < (512)*(512); pi++) { +#else + for (pi = 0; pi < (32)*(32); pi++) { +#endif int zr = zr_in[pi]; int zi = zi_in[pi]; int zk = zk_in[pi]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c index 524fb4542b8..a76f36fb196 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */ /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */ int loop1 (int k) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c b/gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c index af74557024e..39b52607179 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */ /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */ int loop1 (int k) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23115.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23115.c index 6a52aafb458..61408e47a80 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr23115.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23115.c @@ -12,9 +12,13 @@ int main() { long j; double R, n, x; - +#if __SIZEOF_DOUBLE__ >= 8 n = 1.e300; x = -1.e300; +#else + n = 1.e30; + x = -1.e30; +#endif for( j=0; j < 2; j++ ) { x = MAX2(x,p[j]); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr32540-1.c b/gcc/testsuite/gcc.dg/tree-ssa/pr32540-1.c index ce8e0ae824f..f5a444806a1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr32540-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr32540-1.c @@ -19,6 +19,7 @@ void acceptloop_th(int *t) { if (f()) options |= 0x1 << 13; if (f()) options |= 0x1 << 14; if (f()) options |= 0x1 << 15; +#if(__SIZEOF_INT__ >= 4) if (f()) options |= 0x1 << 16; if (f()) options |= 0x1 << 17; if (f()) options |= 0x1 << 18; @@ -30,5 +31,6 @@ void acceptloop_th(int *t) { if (f()) options |= 0x1 << 24; if (f()) options |= 0x1 << 25; if (f()) options |= 0x1 << 26; +#endif if (f()) *t = options; } diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr32540-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr32540-2.c index 29a5e3c55d0..f7fa38de114 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr32540-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr32540-2.c @@ -19,6 +19,7 @@ void acceptloop_th(int *t, int options) { if (f()) options |= 0x1 << 13; if (f()) options |= 0x1 << 14; if (f()) options |= 0x1 << 15; +#if(__SIZEOF_INT__ >= 4) if (f()) options |= 0x1 << 16; if (f()) options |= 0x1 << 17; if (f()) options |= 0x1 << 18; @@ -30,6 +31,8 @@ void acceptloop_th(int *t, int options) { if (f()) options |= 0x1 << 24; if (f()) options |= 0x1 << 25; if (f()) options |= 0x1 << 26; +#endif if (f()) *t = options; } + diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-5.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-5.c index 18ca905bf8e..4a428515dd9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-5.c @@ -13,10 +13,14 @@ void link_error(); int foo(struct BUF1 * p) { - int i = 0; +#if(__SIZEOF_INT__ >= 4) for (i = 0; i < 1024*1024; i++) +#else + for (i = 0; i < 128*128; i++) +#endif p->b1 = 1; + if (p->b1 != 1) link_error (); return 0;