IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-114.c
blob035c9a89c2a29b428f8e4a6c080377ba05f1e443
1 /* { dg-require-effective-target vect_float } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 __attribute__ ((noinline)) int
9 main1 (void)
11 int i;
12 float a[N];
13 float b[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
15 /* Reverse access and forward access. */
16 for (i = N; i > 0; i--)
18 a[N-i] = b[i-1];
21 /* Check results. */
22 for (i = 0; i <N; i++)
24 if (a[i] != b[N-1-i])
25 abort ();
28 return 0;
31 int main (void)
33 check_vect ();
34 return main1 ();
37 /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" } } */
38 /* { dg-final { cleanup-tree-dump "vect" } } */