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

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