i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-scevccp-noreassoc-slp-reduc-7.c
blob022d49f117571c6bbcd3122f9301f0e39dcb0031
1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
3 /* { dg-require-effective-target vect_int } */
5 #include <stdarg.h>
6 #include "tree-vect.h"
8 #define N 16
9 #define MAX 121
11 unsigned int ub[N] = {0,3,6,9,12,15,18,121,24,27,113,33,36,39,42,45};
13 /* Vectorization of reduction using loop-aware SLP (with unrolling). */
15 __attribute__ ((noinline))
16 int main1 (int n)
18 int i;
19 unsigned int max = 50;
21 for (i = 0; i < n; i++) {
22 max = max < ub[2*i] ? ub[2*i] : max;
23 max = max < ub[2*i + 1] ? ub[2*i + 1] : max;
26 /* Check results: */
27 if (max != MAX)
28 abort ();
30 return 0;
33 int main (void)
35 check_vect ();
37 main1 (N/2);
38 return 0;
41 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_min_max } } } */
42 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_min_max } } } */