gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-7.h
raw| 1 | #include "s390-vec-length.h" |
| 2 | |
| 3 | #define N 64 |
| 4 | #define START 1 |
| 5 | #define END 59 |
| 6 | |
| 7 | #define test(TYPE) \ |
| 8 | TYPE x_##TYPE[N] __attribute__((aligned(16))); \ |
| 9 | void __attribute__((noinline, noclone)) test_npeel_##TYPE() { \ |
| 10 | TYPE v = 0; \ |
| 11 | for (unsigned int i = START; i < END; i++) { \ |
| 12 | x_##TYPE[i] = v; \ |
| 13 | v += 1; \ |
| 14 | } \ |
| 15 | } |
| 16 | |
| 17 | TEST_ALL (test) |