[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / p9-vec-length-1.h
blob50da5817013ea8dfb32afea2a3ebbe1e822726e4
1 #include "p9-vec-length.h"
3 /* Test the case loop iteration is known. */
5 #define N 127
7 #define test(TYPE) \
8 extern TYPE a_##TYPE[N]; \
9 extern TYPE b_##TYPE[N]; \
10 extern TYPE c_##TYPE[N]; \
11 void __attribute__ ((noinline, noclone)) test##TYPE () \
12 { \
13 unsigned int i = 0; \
14 for (i = 0; i < N; i++) \
15 c_##TYPE[i] = a_##TYPE[i] + b_##TYPE[i]; \
18 TEST_ALL (test)