libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-118.c
blob71201d1c5996d74b74aa65d7bb5aa27ee8caee70
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
5 void f(short * __restrict__ a, short * __restrict__ b, short * __restrict__ x)
7 int i;
8 for (i=0;i<1024;i++)
9 x[i] = a[i] + b[i];
12 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
13 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */