OSDN Git Service

* gcc.dg/tree-ssa/data-dep-1.c: Skip test for avr-*-* too much code.
authorhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 May 2008 22:20:10 +0000 (22:20 +0000)
committerhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 May 2008 22:20:10 +0000 (22:20 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136058 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c
gcc/testsuite/gcc.dg/tree-ssa/pr23115.c
gcc/testsuite/gcc.dg/tree-ssa/pr32540-1.c
gcc/testsuite/gcc.dg/tree-ssa/pr32540-2.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-5.c

index 59bf3a9..8149701 100644 (file)
@@ -1,3 +1,14 @@
+2008-05-27  Andy Hutchinson  <hutchinsonandy@aim.com>
+
+       * 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  <hongjiu.lu@intel.com>
 
        PR target/35767
index b0225e1..5eb71d9 100644 (file)
@@ -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)
index 49cca20..f37a4d3 100644 (file)
@@ -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];
index 524fb45..a76f36f 100644 (file)
@@ -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)
index af74557..39b5260 100644 (file)
@@ -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)
index 6a52aaf..61408e4 100644 (file)
@@ -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]);
index ce8e0ae..f5a4448 100644 (file)
@@ -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;
 }
index 29a5e3c..f7fa38d 100644 (file)
@@ -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;
 }
 
+
index 18ca905..4a42851 100644 (file)
@@ -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;