Commit 0f7e9e4e by Andy Hutchinson Committed by Andy Hutchinson

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
parent 23ac85e7
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> 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
PR target/35767 PR target/35767
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */ /* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */
int foo (int n, int m) int foo (int n, int m)
......
...@@ -11,7 +11,11 @@ void foo(const int * __restrict__ zr_in, ...@@ -11,7 +11,11 @@ void foo(const int * __restrict__ zr_in,
{ {
unsigned int pi; unsigned int pi;
int tmp_r, tmp_i, tmp_k; int tmp_r, tmp_i, tmp_k;
#if __SIZEOF_INT__ >= 4
for (pi = 0; pi < (512)*(512); pi++) { for (pi = 0; pi < (512)*(512); pi++) {
#else
for (pi = 0; pi < (32)*(32); pi++) {
#endif
int zr = zr_in[pi]; int zr = zr_in[pi];
int zi = zi_in[pi]; int zi = zi_in[pi];
int zk = zk_in[pi]; int zk = zk_in[pi];
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */ /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
int loop1 (int k) int loop1 (int k)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */ /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
int loop1 (int k) int loop1 (int k)
......
...@@ -12,9 +12,13 @@ int main() ...@@ -12,9 +12,13 @@ int main()
{ {
long j; long j;
double R, n, x; double R, n, x;
#if __SIZEOF_DOUBLE__ >= 8
n = 1.e300; n = 1.e300;
x = -1.e300; x = -1.e300;
#else
n = 1.e30;
x = -1.e30;
#endif
for( j=0; j < 2; j++ ) for( j=0; j < 2; j++ )
{ {
x = MAX2(x,p[j]); x = MAX2(x,p[j]);
......
...@@ -19,6 +19,7 @@ void acceptloop_th(int *t) { ...@@ -19,6 +19,7 @@ void acceptloop_th(int *t) {
if (f()) options |= 0x1 << 13; if (f()) options |= 0x1 << 13;
if (f()) options |= 0x1 << 14; if (f()) options |= 0x1 << 14;
if (f()) options |= 0x1 << 15; if (f()) options |= 0x1 << 15;
#if(__SIZEOF_INT__ >= 4)
if (f()) options |= 0x1 << 16; if (f()) options |= 0x1 << 16;
if (f()) options |= 0x1 << 17; if (f()) options |= 0x1 << 17;
if (f()) options |= 0x1 << 18; if (f()) options |= 0x1 << 18;
...@@ -30,5 +31,6 @@ void acceptloop_th(int *t) { ...@@ -30,5 +31,6 @@ void acceptloop_th(int *t) {
if (f()) options |= 0x1 << 24; if (f()) options |= 0x1 << 24;
if (f()) options |= 0x1 << 25; if (f()) options |= 0x1 << 25;
if (f()) options |= 0x1 << 26; if (f()) options |= 0x1 << 26;
#endif
if (f()) *t = options; if (f()) *t = options;
} }
...@@ -19,6 +19,7 @@ void acceptloop_th(int *t, int options) { ...@@ -19,6 +19,7 @@ void acceptloop_th(int *t, int options) {
if (f()) options |= 0x1 << 13; if (f()) options |= 0x1 << 13;
if (f()) options |= 0x1 << 14; if (f()) options |= 0x1 << 14;
if (f()) options |= 0x1 << 15; if (f()) options |= 0x1 << 15;
#if(__SIZEOF_INT__ >= 4)
if (f()) options |= 0x1 << 16; if (f()) options |= 0x1 << 16;
if (f()) options |= 0x1 << 17; if (f()) options |= 0x1 << 17;
if (f()) options |= 0x1 << 18; if (f()) options |= 0x1 << 18;
...@@ -30,6 +31,8 @@ void acceptloop_th(int *t, int options) { ...@@ -30,6 +31,8 @@ void acceptloop_th(int *t, int options) {
if (f()) options |= 0x1 << 24; if (f()) options |= 0x1 << 24;
if (f()) options |= 0x1 << 25; if (f()) options |= 0x1 << 25;
if (f()) options |= 0x1 << 26; if (f()) options |= 0x1 << 26;
#endif
if (f()) *t = options; if (f()) *t = options;
} }
...@@ -13,10 +13,14 @@ void link_error(); ...@@ -13,10 +13,14 @@ void link_error();
int foo(struct BUF1 * p) int foo(struct BUF1 * p)
{ {
int i = 0; int i = 0;
#if(__SIZEOF_INT__ >= 4)
for (i = 0; i < 1024*1024; i++) for (i = 0; i < 1024*1024; i++)
#else
for (i = 0; i < 128*128; i++)
#endif
p->b1 = 1; p->b1 = 1;
if (p->b1 != 1) if (p->b1 != 1)
link_error (); link_error ();
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment