diff options
author | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-12 08:48:44 +0000 |
---|---|---|
committer | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-12 08:48:44 +0000 |
commit | aa2cf621849fc20de63e0b462b8d8d9a5e19f401 (patch) | |
tree | dc82958fed7fc3a20d97d4f7113b549d2c444dbb /gcc/testsuite/gcc.dg/vect/vect-outer-5.c | |
parent | 6cb8e8826693180f478748a0ae3a7ddfd8aa6cae (diff) | |
download | gcc-aa2cf621849fc20de63e0b462b8d8d9a5e19f401.tar.gz |
* tree-vect-analyze.c (vect_analyze_data_ref_dependence): Distinguish
between positive and negative dependence distance using DDR_REVERSED_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128420 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/vect-outer-5.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect-outer-5.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/vect-outer-5.c b/gcc/testsuite/gcc.dg/vect/vect-outer-5.c index 54eb3b9246f..c9fc1e0f40b 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-outer-5.c +++ b/gcc/testsuite/gcc.dg/vect/vect-outer-5.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target vect_int } */ +#include <stdio.h> #include <stdarg.h> #include <signal.h> #include "tree-vect.h" @@ -16,6 +17,7 @@ int main1 () float B[N] __attribute__ ((__aligned__(16))); float C[N] __attribute__ ((__aligned__(16))); float D[N] __attribute__ ((__aligned__(16))); + float E[4] = {0,1,2,480}; float s; int i, j; @@ -53,16 +55,13 @@ int main1 () s = 0; for (j=0; j<N; j+=4) s += C[j]; - B[i] = B[i+3] + s; + B[i+3] = B[i] + s; } /* check results: */ for (i = 0; i < 4; i++) { - s = 0; - for (j=0; j<N; j+=4) - s += C[j]; - if (B[i] != D[i+3] + s) + if (B[i] != E[i]) abort (); } |