Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-scevccp-noreassoc-slp-reduc-7.c
blob1d674504e2cdf03373f9827af4b47f0938f9becf
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
7 #define MAX 121
9 unsigned int ub[N] = {0,3,6,9,12,15,18,121,24,27,113,33,36,39,42,45};
11 /* Vectorization of reduction using loop-aware SLP (with unrolling). */
13 __attribute__ ((noinline))
14 int main1 (int n)
16 int i;
17 unsigned int max = 50;
19 for (i = 0; i < n; i++) {
20 max = max < ub[2*i] ? ub[2*i] : max;
21 max = max < ub[2*i + 1] ? ub[2*i + 1] : max;
24 /* Check results: */
25 if (max != MAX)
26 abort ();
28 return 0;
31 int main (void)
33 check_vect ();
35 main1 (N/2);
36 return 0;
39 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_min_max } } } */
40 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_min_max } } } */