Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/p9-vec-length-7.h

raw
1 #include "p9-vec-length.h"
2
3 /* Test the case that the loop requires to have peeled prologues for
4 alignment. */
5
6 #define N 64
7 #define START 1
8 #define END 59
9
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 } \
18 }
19
20 TEST_ALL (test)