blob: 50da5817013ea8dfb32afea2a3ebbe1e822726e4 [file] [log] [blame]
#include "p9-vec-length.h"
/* Test the case loop iteration is known. */
#define N 127
#define test(TYPE) \
extern TYPE a_##TYPE[N]; \
extern TYPE b_##TYPE[N]; \
extern TYPE c_##TYPE[N]; \
void __attribute__ ((noinline, noclone)) test##TYPE () \
{ \
unsigned int i = 0; \
for (i = 0; i < N; i++) \
c_##TYPE[i] = a_##TYPE[i] + b_##TYPE[i]; \
}
TEST_ALL (test)