SVE Intrinsics: Change return type of redirect_call to gcall.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-simd-clone-19.c
blobe7ed56ca75470464307d0d266dacfa0d8d6e43c1
1 /* { dg-require-effective-target vect_simd_clones } */
2 /* { dg-do compile } */
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" } { "" } } */