re PR testsuite/40244 (Revision 147829 caused extra failures)

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.

From-SVN: r148010
This commit is contained in:
Ira Rosen 2009-05-31 06:55:37 +00:00 committed by Ira Rosen
parent f4a56f0143
commit e90e03ce50
3 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,9 @@
2009-05-31 Ira Rosen <irar@il.ibm.com>
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.
2009-05-29 Ian Lance Taylor <iant@google.com>
* gcc.dg/Wcxx-compat-11.c: New testcase.

View File

@ -14,7 +14,7 @@ main1 (unsigned int x, unsigned int y)
{
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 @@ main1 (unsigned int x, unsigned int y)
*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;

View File

@ -16,16 +16,12 @@ main1 ()
unsigned short *pin = &in[0];
unsigned short *pout = &out[0];
*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;