SVE Intrinsics: Change return type of redirect_call to gcall.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-108.c
blob4f201f0d35939605a3230f00b13a16177d411dfa
1 /* { dg-require-effective-target vect_int_mult } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 16
9 int ic[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
10 int ib[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11 int ia[N];
13 __attribute__ ((noinline)) int
14 main1 (void)
16 int i;
18 /* This loop is vectorized on platforms that support vect_int_mult. */
19 for (i = 0; i < N; i++)
21 ia[i] = ib[i] * ic[i];
24 /* Check results. */
25 #pragma GCC novector
26 for (i = 0; i < N; i++)
28 if (ia[i] != ib[i] * ic[i])
29 abort ();
32 return 0;
35 int main (void)
37 check_vect ();
38 return main1 ();
41 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
43 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */