19 lines
840 B
C
19 lines
840 B
C
#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)
|