Commit 3ea394f2 by Ulrich Weigand Committed by Ulrich Weigand

nrv3.c (S): Increase size of padding for SPU.

	* gcc.dg/nrv3.c (S): Increase size of padding for SPU.
	* g++.dg/opt/temp1.C (struct T): Likewise.

From-SVN: r137363
parent 09357846
2008-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 2008-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.dg/nrv3.c (S): Increase size of padding for SPU.
* g++.dg/opt/temp1.C (struct T): Likewise.
2008-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.c-torture/execute/20030222-1.x: New file. * gcc.c-torture/execute/20030222-1.x: New file.
* gcc.dg/tree-ssa/ssa-fre-3.c: Disable test on SPU. * gcc.dg/tree-ssa/ssa-fre-3.c: Disable test on SPU.
* gcc.dg/lower-subreg-1.c: Likewise. * gcc.dg/lower-subreg-1.c: Likewise.
......
...@@ -24,7 +24,12 @@ void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n) ...@@ -24,7 +24,12 @@ void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n)
} }
struct T { struct T {
#ifdef __SPU__
/* SPU returns aggregates up to 1172 bytes in registers. */
int a[300];
#else
int a[128]; int a[128];
#endif
T &operator+=(T const &v) __attribute__((noinline)); T &operator+=(T const &v) __attribute__((noinline));
T operator+(T const &v) const { T t = *this; t += v; return t; } T operator+(T const &v) const { T t = *this; t += v; return t; }
}; };
......
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */ /* { dg-options "-O -fdump-tree-optimized" } */
#ifdef __SPU__
/* SPU returns aggregates up to 1172 bytes in registers. */
typedef struct { int x[300]; void *y; } S;
#else
typedef struct { int x[20]; void *y; } S; typedef struct { int x[20]; void *y; } S;
#endif
typedef struct { int a; S b; } T; typedef struct { int a; S b; } T;
S nrv_candidate (void); S nrv_candidate (void);
void use_result (S, int); void use_result (S, int);
......
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