SVE Intrinsics: Change return type of redirect_call to gcall.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr108608.c
blobfff5c1a89365665edc3478263ee909b2b260e178
1 #include "tree-vect.h"
3 double __attribute__((noipa))
4 foo (double m, float *ptr)
6 for (int i = 0; i < 256; i++)
7 m = __builtin_fmax (m, ptr[i]);
8 return m;
11 int
12 main (void)
14 check_vect ();
15 float ptr[256];
16 #pragma GCC novector
17 for (int j = 0; j < 16; ++j)
19 for (int i = 0; i < 256; ++i)
20 ptr[i] = i == 128 + j ? 2 + j : i == 161 ? 1 : 0;
21 if (foo (0, ptr) != 2 + j)
22 __builtin_abort ();
24 return 0;