* gcc.dg/nrv3.c (S): Increase size of padding for SPU.
* g++.dg/opt/temp1.C (struct T): Likewise.
From-SVN: r137363
+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.
}
struct T {
+#ifdef __SPU__
+ /* SPU returns aggregates up to 1172 bytes in registers. */
+ int a[300];
+#else
int a[128];
+#endif
T &operator+=(T const &v) __attribute__((noinline));
T operator+(T const &v) const { T t = *this; t += v; return t; }
};
/* { dg-do compile } */
/* { 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;
+#endif
typedef struct { int a; S b; } T;
S nrv_candidate (void);
void use_result (S, int);