Commit 456e1323 by Ira Rosen Committed by Ira Rosen

vect-16.c: Rename to...


	* gcc.dg/vect/vect-16.c: Rename to...
	* gcc.dg/vect/no-fast-math-vect16.c: ...this.
	* gcc.dg/vect/vect-peel-3.c: Adjust misalignment values
	for double-word vectors.
	* gcc.dg/vect/vect-peel-4.c: Likewise.
	* gcc.dg/vect/bb-slp-10.c: Replace vect_hw_misalign with
	vect_element_align.
	* gcc.dg/vect/vect.exp: Run no-fast-math-* tests with
	-fno-fast-math.

From-SVN: r175009
parent 3b8dffe7
2011-06-14 Ira Rosen <ira.rosen@linaro.org>
* gcc.dg/vect/vect-16.c: Rename to...
* gcc.dg/vect/no-fast-math-vect16.c: ...this.
* gcc.dg/vect/vect-peel-3.c: Adjust misalignment values
for double-word vectors.
* gcc.dg/vect/vect-peel-4.c: Likewise.
* gcc.dg/vect/bb-slp-10.c: Replace vect_hw_misalign with
vect_element_align.
* gcc.dg/vect/vect.exp: Run no-fast-math-* tests with
-fno-fast-math.
2011-06-13 Edmar Wienskoski <edmar@freescale.com> 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
* gcc.target/powerpc/outofline_rnreg.c: New testcase. * gcc.target/powerpc/outofline_rnreg.c: New testcase.
......
...@@ -49,7 +49,7 @@ int main (void) ...@@ -49,7 +49,7 @@ int main (void)
return 0; return 0;
} }
/* { dg-final { scan-tree-dump-times "unsupported alignment in basic block." 1 "slp" { xfail vect_hw_misalign } } } */ /* { dg-final { scan-tree-dump-times "unsupported alignment in basic block." 1 "slp" { xfail vect_element_align } } } */
/* { dg-final { scan-tree-dump-times "basic block vectorized using SLP" 1 "slp" { target vect_hw_misalign } } } */ /* { dg-final { scan-tree-dump-times "basic block vectorized using SLP" 1 "slp" { target vect_element_align } } } */
/* { dg-final { cleanup-tree-dump "slp" } } */ /* { dg-final { cleanup-tree-dump "slp" } } */
...@@ -4,9 +4,7 @@ ...@@ -4,9 +4,7 @@
#include "tree-vect.h" #include "tree-vect.h"
#define N 128 #define N 128
#define RES 21888 #define RES 21640
/* unaligned store. */
int ib[N+10]; int ib[N+10];
int ia[N+10]; int ia[N+10];
...@@ -18,11 +16,11 @@ int main1 () ...@@ -18,11 +16,11 @@ int main1 ()
int i, suma = 0, sumb = 0, sumc = 0; int i, suma = 0, sumb = 0, sumc = 0;
/* ib and ic have same misalignment, we peel to align them. */ /* ib and ic have same misalignment, we peel to align them. */
for (i = 1; i <= N; i++) for (i = 0; i <= N; i++)
{ {
suma += ia[i]; suma += ia[i];
sumb += ib[i+6]; sumb += ib[i+5];
sumc += ic[i+2]; sumc += ic[i+1];
} }
/* check results: */ /* check results: */
......
...@@ -16,13 +16,13 @@ int main1 () ...@@ -16,13 +16,13 @@ int main1 ()
/* Don't peel keeping one load and the store aligned. */ /* Don't peel keeping one load and the store aligned. */
for (i = 0; i <= N; i++) for (i = 0; i <= N; i++)
{ {
ia[i] = ib[i] + ib[i+6]; ia[i] = ib[i] + ib[i+5];
} }
/* check results: */ /* check results: */
for (i = 1; i <= N; i++) for (i = 1; i <= N; i++)
{ {
if (ia[i] != ib[i] + ib[i+6]) if (ia[i] != ib[i] + ib[i+5])
abort (); abort ();
} }
......
...@@ -107,6 +107,12 @@ lappend DEFAULT_VECTCFLAGS "-ffast-math" ...@@ -107,6 +107,12 @@ lappend DEFAULT_VECTCFLAGS "-ffast-math"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/fast-math-*.\[cS\]]] \ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/fast-math-*.\[cS\]]] \
"" $DEFAULT_VECTCFLAGS "" $DEFAULT_VECTCFLAGS
# -fno-fast-math tests
set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
lappend DEFAULT_VECTCFLAGS "-fno-fast-math"
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/no-fast-math-*.\[cS\]]] \
"" $DEFAULT_VECTCFLAGS
# -fno-math-errno tests # -fno-math-errno tests
set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
lappend DEFAULT_VECTCFLAGS "-fno-math-errno" lappend DEFAULT_VECTCFLAGS "-fno-math-errno"
......
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