summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/slp-13.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/slp-13.c')
-rw-r--r--gcc/testsuite/gcc.dg/vect/slp-13.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/slp-13.c b/gcc/testsuite/gcc.dg/vect/slp-13.c
index e1c4e415f67..655e6ade1d0 100644
--- a/gcc/testsuite/gcc.dg/vect/slp-13.c
+++ b/gcc/testsuite/gcc.dg/vect/slp-13.c
@@ -3,25 +3,17 @@
#include <stdarg.h>
#include "tree-vect.h"
-#define N 64
-volatile int y = 0;
+#define N 8
int
main1 ()
{
int i;
unsigned short out[N*8];
- unsigned short in[N*8];
- unsigned int in2[N*8];
+ unsigned short in[N*8] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63};
+ unsigned int in2[N*8] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63};
unsigned int out2[N*8];
- for (i = 0; i < N*8; i++)
- {
- in[i] = in2[i] = i;
- if (y) /* Avoid vectorization. */
- abort ();
- }
-
/* Induction is not SLPable yet. */
for (i = 0; i < N; i++)
{