Commit e0774f1e by Richard Guenther Committed by Richard Biener

bb-slp-21.c: Adjust.

2010-06-15  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/vect/bb-slp-21.c: Adjust.
	* gcc.dg/vect/bb-slp-13.c: Likewise
	* gcc.dg/vect/bb-slp-4.c: Likewise
	* gcc.dg/vect/bb-slp-22.c: Likewise
	* gcc.dg/vect/bb-slp-14.c: Likewise
	* gcc.dg/vect/bb-slp-23.c: Likewise
	* gcc.dg/vect/bb-slp-15.c: Likewise
	* gcc.dg/vect/bb-slp-17.c: Likewise
	* gcc.dg/vect/bb-slp-18.c: Likewise
	* gcc.dg/vect/bb-slp-19.c: Likewise
	* gcc.dg/vect/bb-slp-10.c: Likewise
	* gcc.dg/vect/bb-slp-11.c: Likewise
	* gcc.dg/vect/bb-slp-20.c: Likewise
	* gcc.dg/vect/bb-slp-3.c: Likewise

From-SVN: r160786
parent 50416c61
2010-06-15 Richard Guenther <rguenther@suse.de>
* gcc.dg/vect/bb-slp-21.c: Adjust.
* gcc.dg/vect/bb-slp-13.c: Likewise
* gcc.dg/vect/bb-slp-4.c: Likewise
* gcc.dg/vect/bb-slp-22.c: Likewise
* gcc.dg/vect/bb-slp-14.c: Likewise
* gcc.dg/vect/bb-slp-23.c: Likewise
* gcc.dg/vect/bb-slp-15.c: Likewise
* gcc.dg/vect/bb-slp-17.c: Likewise
* gcc.dg/vect/bb-slp-18.c: Likewise
* gcc.dg/vect/bb-slp-19.c: Likewise
* gcc.dg/vect/bb-slp-10.c: Likewise
* gcc.dg/vect/bb-slp-11.c: Likewise
* gcc.dg/vect/bb-slp-20.c: Likewise
* gcc.dg/vect/bb-slp-3.c: Likewise
2010-06-15 Jakub Jelinek <jakub@redhat.com> 2010-06-15 Jakub Jelinek <jakub@redhat.com>
PR fortran/44536 PR fortran/44536
......
...@@ -28,6 +28,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -28,6 +28,9 @@ main1 (unsigned int x, unsigned int y)
*pout++ = a2 * x; *pout++ = a2 * x;
*pout++ = a3 * y; *pout++ = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[1] != (in[0] + 23) * x if (out[1] != (in[0] + 23) * x
|| out[2] != (in[1] + 142) * y || out[2] != (in[1] + 142) * y
......
...@@ -27,6 +27,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -27,6 +27,9 @@ main1 (unsigned int x, unsigned int y)
*pout++ = a2 * x; *pout++ = a2 * x;
*pout++ = a3 * y; *pout++ = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != (in[0] + 23) * x if (out[0] != (in[0] + 23) * x
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * y
......
...@@ -25,6 +25,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -25,6 +25,9 @@ main1 (unsigned int x, unsigned int y)
out[2] = a2 * x; out[2] = a2 * x;
out[3] = a3 * y; out[3] = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != (in[0] + 23) * x if (out[0] != (in[0] + 23) * x
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * y
......
...@@ -26,6 +26,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -26,6 +26,9 @@ main1 (unsigned int x, unsigned int y)
out[2] = a2 * x; out[2] = a2 * x;
out[3] = a3 * y; out[3] = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != (in[0] + 23) * x if (out[0] != (in[0] + 23) * x
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * y
......
...@@ -30,6 +30,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -30,6 +30,9 @@ main1 (unsigned int x, unsigned int y)
out[2] = a2 * x; out[2] = a2 * x;
out[3] = a3 * y; out[3] = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != (in[0] + 23) * x if (out[0] != (in[0] + 23) * x
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * y
......
...@@ -34,6 +34,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -34,6 +34,9 @@ main1 (unsigned int x, unsigned int y)
out[2] = a2 * x; out[2] = a2 * x;
out[3] = a3 * y; out[3] = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != (in[0] + 23) * x if (out[0] != (in[0] + 23) * x
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * y
......
...@@ -25,6 +25,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -25,6 +25,9 @@ main1 (unsigned int x, unsigned int y)
out[2] = a2 * x; out[2] = a2 * x;
out[3] = a3 * y; out[3] = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != a0 * x if (out[0] != a0 * x
|| out[1] != a1 * y || out[1] != a1 * y
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
unsigned short out[N]; unsigned short out[N];
unsigned short in[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; unsigned short in[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int i;
__attribute__ ((noinline)) int __attribute__ ((noinline)) int
main1 () main1 ()
{ {
int i;
unsigned short *pin = &in[0]; unsigned short *pin = &in[0];
unsigned short *pout = &out[0]; unsigned short *pout = &out[0];
...@@ -27,6 +27,9 @@ main1 () ...@@ -27,6 +27,9 @@ main1 ()
*pout++ = *pin++; *pout++ = *pin++;
*pout++ = *pin++; *pout++ = *pin++;
if (i)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != in[0] if (out[0] != in[0]
|| out[1] != in[1] || out[1] != in[1]
......
...@@ -37,6 +37,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -37,6 +37,9 @@ main1 (unsigned int x, unsigned int y)
out[2] = a2 * x; out[2] = a2 * x;
out[3] = a3 * y; out[3] = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != (in[0] + 23) * x if (out[0] != (in[0] + 23) * x
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * y
......
...@@ -37,6 +37,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -37,6 +37,9 @@ main1 (unsigned int x, unsigned int y)
out[2] = a2 * x; out[2] = a2 * x;
out[3] = a3 * y; out[3] = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != (in[0] + 23) * x if (out[0] != (in[0] + 23) * x
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * y
......
...@@ -36,6 +36,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -36,6 +36,9 @@ main1 (unsigned int x, unsigned int y)
out[3] = a3 * y; out[3] = a3 * y;
} }
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if ((x <= y if ((x <= y
&& (out[0] != (in[0] + 23) * x && (out[0] != (in[0] + 23) * x
......
...@@ -30,6 +30,9 @@ main1 (unsigned int x, unsigned int y) ...@@ -30,6 +30,9 @@ main1 (unsigned int x, unsigned int y)
out[2] = a2 * x; out[2] = a2 * x;
out[3] = a3 * y; out[3] = a3 * y;
if (x)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != (in[0] + 23) * x if (out[0] != (in[0] + 23) * x
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * y
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
unsigned int out[N]; unsigned int out[N];
unsigned int in[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; unsigned int in[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int i;
__attribute__ ((noinline)) int __attribute__ ((noinline)) int
main1 () main1 ()
{ {
int i;
unsigned int *pin = &in[0]; unsigned int *pin = &in[0];
unsigned int *pout = &out[0]; unsigned int *pout = &out[0];
...@@ -21,6 +21,9 @@ main1 () ...@@ -21,6 +21,9 @@ main1 ()
*pout++ = *pin++; *pout++ = *pin++;
*pout++ = *pin++; *pout++ = *pin++;
if (i)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != in[0] if (out[0] != in[0]
|| out[1] != in[1] || out[1] != in[1]
......
...@@ -9,16 +9,19 @@ ...@@ -9,16 +9,19 @@
unsigned short out[N]; unsigned short out[N];
unsigned short in[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; unsigned short in[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int i;
__attribute__ ((noinline)) int __attribute__ ((noinline)) int
main1 () main1 ()
{ {
int i;
unsigned short *pin = &in[0]; unsigned short *pin = &in[0];
unsigned short *pout = &out[0]; unsigned short *pout = &out[0];
*pout++ = *pin++; *pout++ = *pin++;
*pout++ = *pin++; *pout++ = *pin++;
if (i)
__asm__ volatile ("" : : : "memory");
/* Check results. */ /* Check results. */
if (out[0] != in[0] if (out[0] != in[0]
|| out[1] != in[1]) || out[1] != in[1])
......
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