summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-74.c
diff options
context:
space:
mode:
authordorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-20 07:17:06 +0000
committerdorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-20 07:17:06 +0000
commitae02be01e3f10620f4f0883457229663660af584 (patch)
tree1be1ed04be05fe68f095ed63ddafbe716768f96c /gcc/testsuite/gcc.dg/vect/vect-74.c
parentece445c880638f39b3060f1a98364e99a88dc75a (diff)
downloadgcc-ae02be01e3f10620f4f0883457229663660af584.tar.gz
2004-09-20 Ira Rosen <irar@il.ibm.com>
* gcc.dg/vect/vect-13.c: Added xfail for non ppc platforms. * gcc.dg/vect/vect-74.c: Split into 3 tests (vect-79.c, vect-80.c). * gcc.dg/vect/vect-62.c: New testcase. * gcc.dg/vect/vect-63.c: New testcase. * gcc.dg/vect/vect-64.c: New testcase. * gcc.dg/vect/vect-65.c: New testcase. * gcc.dg/vect/vect-66.c: New testcase. * gcc.dg/vect/vect-67.c: New testcase. * gcc.dg/vect/vect-68.c: New testcase. * gcc.dg/vect/vect-69.c: New testcase. * gcc.dg/vect/vect-79.c: New testcase. * gcc.dg/vect/vect-80.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87745 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/vect-74.c')
-rw-r--r--gcc/testsuite/gcc.dg/vect/vect-74.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/vect-74.c b/gcc/testsuite/gcc.dg/vect/vect-74.c
index 8e6f46fed82..66619dc82e6 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-74.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-74.c
@@ -14,11 +14,6 @@ afloat a[N];
afloat b[N+4] = {0.2, 1.3, 2.3, 3.4, 4.5, 5.6, 7.8, 9.0, 10.11, 11.12, 12.13, 13.14, 14.15, 15.16, 16.17, 17.18, 18.19, 19.20};
afloat c[N] = {0.2, 1.3, 2.3, 3.4, 4.5, 5.6, 7.8, 9.0, 10.11, 11.12, 12.13, 13.14, 14.15, 15.16};
-float fa[N];
-float fb[N+4] = {0.2, 1.3, 2.3, 3.4, 4.5, 5.6, 7.8, 9.0, 10.11, 11.12, 12.13, 13.14, 14.15, 15.16,
-16.17, 17.18, 18.19, 19.20};
-float fc[N] = {0.2, 1.3, 2.3, 3.4, 4.5, 5.6, 7.8, 9.0, 10.11, 11.12, 12.13, 13.14, 14.15, 15.16};
-
int
main1 (afloat *__restrict__ pa, afloat * __restrict__ pb, afloat * __restrict__ pc)
{
@@ -39,59 +34,13 @@ main1 (afloat *__restrict__ pa, afloat * __restrict__ pb, afloat * __restrict__
return 0;
}
-/* Not vectorizable. Alias. */
-int
-main2 (afloat *pa, afloat *pb, afloat *pc)
-{
- int i;
- afloat *q = pb + 4;
-
- for (i = 0; i < N; i++)
- {
- pa[i] = q[i] * pc[i];
- }
-
- for (i = 0; i < N; i++)
- {
- if (pa[i] != q[i] * pc[i])
- abort();
- }
-
- return 0;
-}
-
-/* Not vectorizable: not aligned pointers. */
-int
-main3 (float * __restrict__ pa, float * __restrict__ pb, float *__restrict__ pc)
-{
- int i;
- afloat *q = pb + 4;
-
- for (i = 0; i < N; i++)
- {
- pa[i] = q[i] * pc[i];
- }
-
- for (i = 0; i < N; i++)
- {
- if (pa[i] != q[i] * pc[i])
- abort();
- }
-
- return 0;
-}
-
-
int main (void)
{
check_vect ();
main1 (a, b, c);
- main2 (a, b, c);
- main3 (fa, fb, fc);
return 0;
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorized 0 loops" 2 "vect" } } */