libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-113.c
blob89a94d822af6cc7a3b5ac6f2c4df50a34acca156
1 /* { dg-require-effective-target vect_float } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 16
9 __attribute__ ((noinline)) int
10 main1 (void)
12 int i;
13 float a[N];
15 /* Induction and type conversion. */
16 for ( i = 0; i < N; i++)
18 a[i] = i;
21 #pragma GCC novector
22 for ( i = 0; i < N; i++)
24 if (a[i] != i)
25 abort ();
28 return 0;
31 int main (void)
33 check_vect ();
34 return main1 ();
37 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target powerpc*-*-* i?86-*-* x86_64-*-* } } } */
38 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */