This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, committed] Fix PR testsuite/40244 - basic block SLP tests
- From: Ira Rosen <IRAR at il dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 31 May 2009 09:56:54 +0300
- Subject: [patch, committed] Fix PR testsuite/40244 - basic block SLP tests
Hi,
This patch fixes two basic block SLP tests to work correctly on ia64 (the
problem was in different vector sizes).
Tested on ia64 by HJ and on x86_64. Committed as obvious.
Ira
testsuite/ChangeLog:
PR testsuite/40244
* gcc.dg/vect/bb-slp-4.c: Change the number of data accesses to 2.
* gcc.dg/vect/bb-slp-10.c: Change the store misalignment to 1.
Index: testsuite/gcc.dg/vect/bb-slp-4.c
===================================================================
--- testsuite/gcc.dg/vect/bb-slp-4.c (revision 148009)
+++ testsuite/gcc.dg/vect/bb-slp-4.c (working copy)
@@ -18,14 +18,10 @@
*pout++ = *pin++;
*pout++ = *pin++;
- *pout++ = *pin++;
- *pout++ = *pin++;
/* Check results. */
if (out[0] != in[0]
- || out[1] != in[1]
- || out[2] != in[2]
- || out[3] != in[3])
+ || out[1] != in[1])
abort();
return 0;
Index: testsuite/gcc.dg/vect/bb-slp-10.c
===================================================================
--- testsuite/gcc.dg/vect/bb-slp-10.c (revision 148009)
+++ testsuite/gcc.dg/vect/bb-slp-10.c (working copy)
@@ -14,7 +14,7 @@
{
int i;
unsigned int *pin = &in[0];
- unsigned int *pout = &out[2];
+ unsigned int *pout = &out[1];
unsigned int a0, a1, a2, a3;
/* Misaligned store. */
@@ -29,10 +29,10 @@
*pout++ = a3 * y;
/* Check results. */
- if (out[2] != (in[0] + 23) * x
- || out[3] != (in[1] + 142) * y
- || out[4] != (in[2] + 2) * x
- || out[5] != (in[3] + 31) * y)
+ if (out[1] != (in[0] + 23) * x
+ || out[2] != (in[1] + 142) * y
+ || out[3] != (in[2] + 2) * x
+ || out[4] != (in[3] + 31) * y)
abort();
return 0;