blob: 4ef8f974a040a83eff051a0cdc9d4ff30388d427 [file] [log] [blame]
#include "p9-vec-length.h"
/* Test the case that the loop requires to have peeled prologues for
alignment. */
#define N 64
#define START 1
#define END 59
#define test(TYPE) \
TYPE x_##TYPE[N] __attribute__((aligned(16))); \
void __attribute__((noinline, noclone)) test_npeel_##TYPE() { \
TYPE v = 0; \
for (unsigned int i = START; i < END; i++) { \
x_##TYPE[i] = v; \
v += 1; \
} \
}
TEST_ALL (test)