libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-121.c
blobd820215ca67c08409be7f2cb3daa24802ff100a0
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
5 float *x;
6 float parm;
7 float
8 test (int start, int end)
10 int i;
11 for (i = start; i < end; ++i)
13 float tem = x[i];
14 x[i] = parm * tem;
18 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */
19 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */