summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/neon-vmla-1.c
blob: 9d239ed47d09c95a57cb68545e34eaa322d92f3b (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\\.f32" } } */

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