summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-02 19:49:10 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-02 19:49:10 +0000
commit2178b2284c0b59b1800b3beea9948cabd0143b42 (patch)
tree74ec6b21853a8cbc730676d0cc3b44a4b8e93a52 /gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c
parent0ba415ab214ea7bc9c0b5a31e809998686d8b511 (diff)
downloadgcc-2178b2284c0b59b1800b3beea9948cabd0143b42.tar.gz
Increase array sizes in vect-tests to enable 256-bit vectorization
2011-12-02 Michael Zolotukhin <michael.v.zolotukhin@intel.com> * gcc.dg/vect/slp-13.c: Increase array size, add initialization. * gcc.dg/vect/slp-24.c: Ditto. * gcc.dg/vect/slp-3.c: Likewise and fix scans. * gcc.dg/vect/slp-34.c: Ditto. * gcc.dg/vect/slp-4.c: Ditto. * gcc.dg/vect/slp-cond-2.c: Ditto. * gcc.dg/vect/slp-multitypes-11.c: Ditto. * gcc.dg/vect/vect-1.c: Ditto. * gcc.dg/vect/vect-10.c: Ditto. * gcc.dg/vect/vect-105.c: Ditto. * gcc.dg/vect/vect-112.c: Ditto. * gcc.dg/vect/vect-15.c: Ditto. * gcc.dg/vect/vect-2.c: Ditto. * gcc.dg/vect/vect-31.c: Ditto. * gcc.dg/vect/vect-32.c: Ditto. * gcc.dg/vect/vect-33.c: Ditto. * gcc.dg/vect/vect-34.c: Ditto. * gcc.dg/vect/vect-35.c: Ditto. * gcc.dg/vect/vect-36.c: Ditto. * gcc.dg/vect/vect-6.c: Ditto. * gcc.dg/vect/vect-73.c: Ditto. * gcc.dg/vect/vect-74.c: Ditto. * gcc.dg/vect/vect-75.c: Ditto. * gcc.dg/vect/vect-76.c: Ditto. * gcc.dg/vect/vect-80.c: Ditto. * gcc.dg/vect/vect-85.c: Ditto. * gcc.dg/vect/vect-89.c: Ditto. * gcc.dg/vect/vect-97.c: Ditto. * gcc.dg/vect/vect-98.c: Ditto. * gcc.dg/vect/vect-all.c: Ditto. * gcc.dg/vect/vect-double-reduc-6.c: Ditto. * gcc.dg/vect/vect-iv-8.c: Ditto. * gcc.dg/vect/vect-iv-8a.c: Ditto. * gcc.dg/vect/vect-outer-1.c: Ditto. * gcc.dg/vect/vect-outer-1a.c: Ditto. * gcc.dg/vect/vect-outer-1b.c: Ditto. * gcc.dg/vect/vect-outer-2.c: Ditto. * gcc.dg/vect/vect-outer-2a.c: Ditto. * gcc.dg/vect/vect-outer-2c.c: Ditto. * gcc.dg/vect/vect-outer-3.c: Ditto. * gcc.dg/vect/vect-outer-3a.c: Ditto. * gcc.dg/vect/vect-outer-4a.c: Ditto. * gcc.dg/vect/vect-outer-4b.c: Ditto. * gcc.dg/vect/vect-outer-4c.c: Ditto. * gcc.dg/vect/vect-outer-4d.c: Ditto. * gcc.dg/vect/vect-outer-4m.c: Ditto. * gcc.dg/vect/vect-outer-fir-lb.c: Ditto. * gcc.dg/vect/vect-outer-fir.c: Ditto. * gcc.dg/vect/vect-over-widen-1.c: Ditto. * gcc.dg/vect/vect-over-widen-2.c: Ditto. * gcc.dg/vect/vect-over-widen-3.c: Ditto. * gcc.dg/vect/vect-over-widen-4.c: Ditto. * gcc.dg/vect/vect-reduc-1char.c: Ditto. * gcc.dg/vect/vect-reduc-2char.c: Ditto. * gcc.dg/vect/vect-reduc-pattern-1b.c: Ditto. * gcc.dg/vect/vect-reduc-pattern-1c.c: Ditto. * gcc.dg/vect/vect-reduc-pattern-2b.c: Ditto. * gcc.dg/vect/vect-shift-2.c: Ditto. * gcc.dg/vect/vect-strided-a-u8-i8-gap2.c: Ditto. * gcc.dg/vect/vect-strided-a-u8-i8-gap7.c: Ditto. * gcc.dg/vect/vect-strided-u8-i8-gap2.c: Ditto. * gcc.dg/vect/vect-strided-u8-i8-gap4.c: Ditto. * gcc.dg/vect/vect-strided-u8-i8-gap7.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181939 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c')
-rw-r--r--gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c33
1 files changed, 24 insertions, 9 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c b/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c
index cc09fa608dc..28a9c58cd65 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c
@@ -3,7 +3,7 @@
#include <stdarg.h>
#include "tree-vect.h"
-#define N 16
+#define N 128
typedef struct {
unsigned char a;
@@ -22,6 +22,7 @@ main1 ()
int i;
s arr[N];
s *ptr = arr;
+ s check_res[N];
s res[N];
unsigned char u, t, s, x, y, z, w;
@@ -35,6 +36,20 @@ main1 ()
arr[i].f = i * 5;
arr[i].g = i - 3;
arr[i].h = 67;
+
+ u = arr[i].b - arr[i].a;
+ t = arr[i].d - arr[i].c;
+ check_res[i].c = u + t;
+ x = arr[i].b + arr[i].d;
+ check_res[i].a = arr[i].a + x;
+ check_res[i].d = u + t;
+ s = arr[i].h - arr[i].a;
+ check_res[i].b = s + t;
+ check_res[i].f = arr[i].f + arr[i].h;
+ check_res[i].e = arr[i].b + arr[i].e;
+ check_res[i].h = arr[i].d;
+ check_res[i].g = u + t;
+
if (arr[i].a == 178)
abort();
}
@@ -59,14 +74,14 @@ main1 ()
/* check results: */
for (i = 0; i < N; i++)
{
- if (res[i].c != arr[i].b - arr[i].a + arr[i].d - arr[i].c
- || res[i].a != arr[i].a + arr[i].b + arr[i].d
- || res[i].d != arr[i].b - arr[i].a + arr[i].d - arr[i].c
- || res[i].b != arr[i].h - arr[i].a + arr[i].d - arr[i].c
- || res[i].f != arr[i].f + arr[i].h
- || res[i].e != arr[i].b + arr[i].e
- || res[i].h != arr[i].d
- || res[i].g != arr[i].b - arr[i].a + arr[i].d - arr[i].c)
+ if (res[i].a != check_res[i].a
+ || res[i].b != check_res[i].b
+ || res[i].c != check_res[i].c
+ || res[i].d != check_res[i].d
+ || res[i].e != check_res[i].e
+ || res[i].f != check_res[i].f
+ || res[i].g != check_res[i].g
+ || res[i].h != check_res[i].h)
abort();
}
}