c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / p9-vec-length-7.h
blob4ef8f974a040a83eff051a0cdc9d4ff30388d427
1 #include "p9-vec-length.h"
3 /* Test the case that the loop requires to have peeled prologues for
4 alignment. */
6 #define N 64
7 #define START 1
8 #define END 59
10 #define test(TYPE) \
11 TYPE x_##TYPE[N] __attribute__((aligned(16))); \
12 void __attribute__((noinline, noclone)) test_npeel_##TYPE() { \
13 TYPE v = 0; \
14 for (unsigned int i = START; i < END; i++) { \
15 x_##TYPE[i] = v; \
16 v += 1; \
17 } \
20 TEST_ALL (test)