aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/simd/vect-dot-qi.h
blob: ea5c212419d59afc37d5e6bbb51c4a8cb188d8dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
TYPE char X[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
TYPE char Y[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));

__attribute__ ((noinline)) int
foo1(int len) {
  int i;
  TYPE int result = 0;
  TYPE short prod;

  for (i=0; i<len; i++) {
    prod = X[i] * Y[i];
    result += prod;
  }
  return result;
}