libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-simd-clone-19.c
blob46d25526479df05290c47ec6dfd92c306dc69a93
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_simd_clones } */
4 int __attribute__ ((__simd__, const)) fn (int);
6 void test (int * __restrict__ a, int * __restrict__ b, int n)
8 for (int i = 0; i < n; ++i)
10 int a_;
11 if (b[i] > 0)
12 a_ = fn (b[i]);
13 else
14 a_ = b[i] + 5;
15 a[i] = a_;
19 /* { dg-final { scan-tree-dump-not {loop contains function calls or data references} "vect" } } */
21 /* The LTO test produces two dump files and we scan the wrong one. */
22 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */