diff options
author | Ira Rosen <irar@il.ibm.com> | 2008-07-02 07:04:18 +0000 |
---|---|---|
committer | Ira Rosen <irar@gcc.gnu.org> | 2008-07-02 07:04:18 +0000 |
commit | 966308b352cacdc387c2907e461a6ac172371912 (patch) | |
tree | f5804822730896d509f606550ac9bf8d59b9c500 /gcc | |
parent | 7a6942ad82eae4db785a643b1f506e1778fc1e87 (diff) | |
download | gcc-966308b352cacdc387c2907e461a6ac172371912.zip gcc-966308b352cacdc387c2907e461a6ac172371912.tar.gz gcc-966308b352cacdc387c2907e461a6ac172371912.tar.bz2 |
costmodel-vect-iv-9.c: Add noinline attribute to main1().
* gcc.dg/vect/costmodel/spu/costmodel-vect-iv-9.c: Add noinline
attribute to main1().
* gcc.dg/vect/costmodel/spu/costmodel-vect-33.c: Increase the loop
bound in order to make it worth to vectorize the loop.
* gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c: Likewise.
From-SVN: r137342
Diffstat (limited to 'gcc')
4 files changed, 13 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3f74ced..ce0c2c6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2008-07-02 Ira Rosen <irar@il.ibm.com> + + * gcc.dg/vect/costmodel/spu/costmodel-vect-iv-9.c: Add noinline + attribute to main1(). + * gcc.dg/vect/costmodel/spu/costmodel-vect-33.c: Increase the loop + bound in order to make it worth to vectorize the loop. + * gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c: Likewise. + 2008-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/36676 diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-33.c b/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-33.c index df92ceb..3e0db3d 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-33.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-33.c @@ -4,7 +4,7 @@ #include <stdarg.h> #include "../../tree-vect.h" -#define N 16 +#define N 17 struct test { char ca[N]; }; diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c b/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c index 71f3977..3aac4c9 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c @@ -3,20 +3,20 @@ #include <stdarg.h> #include "../../tree-vect.h" -#define N 8 +#define N 16 #define OFF 4 /* Check handling of accesses for which the "initial condition" - the expression that represents the first location accessed - is more involved than just an ssa_name. */ -int ib[N+OFF] __attribute__ ((__aligned__(16))) = {0, 1, 3, 5, 7, 11, 13, 17, 0, 2, 6, 10}; +int ib[N+OFF] __attribute__ ((__aligned__(16))) = {0, 1, 3, 5, 7, 11, 13, 17, 0, 2, 6, 10, 0, 1, 3, 5, 7, 11, 13, 17}; int main1 (int *pib) { int i; int ia[N+OFF]; - int ic[N+OFF] = {0, 1, 3, 5, 7, 11, 13, 17, 0, 2, 6, 10}; + int ic[N+OFF] = {0, 1, 3, 5, 7, 11, 13, 17, 0, 2, 6, 10, 0, 1, 3, 5, 7, 11, 13, 17}; for (i = OFF; i < N; i++) { diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-iv-9.c b/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-iv-9.c index e01b67e..af694a3 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-iv-9.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/spu/costmodel-vect-iv-9.c @@ -6,7 +6,7 @@ #define N 26 int a[N]; -int main1 (int X) +__attribute__ ((noinline)) int main1 (int X) { int s = X; int i; |