aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/p9-vec-length-8.h
blob: 09d0e369f1119bd0db34de110a894669585d9f03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "p9-vec-length.h"

/* Test the case that the loop requires to peel for gaps.  */

#define N 200

#define test(TYPE)                                                             \
  void __attribute__((noinline, noclone))                                      \
      test_##TYPE(TYPE *restrict dest, TYPE *restrict src) {                   \
    for (unsigned int i = 0; i < N; ++i)                                       \
      dest[i] += src[i * 2];                                                   \
  }

TEST_ALL(test)