aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/neon-vmla-1.c
blob: c60c014e0c2fd3dee903a56f5af3029bb329e546 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-require-effective-target arm_neon_hw } */
/* { dg-options "-O2 -ftree-vectorize -ffast-math" } */
/* { dg-add-options arm_neon } */
/* { dg-final { scan-assembler "vmla\\.i32" } } */

/* Verify that VMLA is used.  */
void f1(int n, int a, int x[], int y[]) {
  int i;
  for (i = 0; i < n; ++i)
    y[i] = a * x[i] + y[i];
}