aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/neon-vmls-1.c
blob: 5e5e0c757acb39d183dca8b5bbf916089c2a1b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-require-effective-target arm_neon_hw } */
/* { dg-options "-O2 -ftree-vectorize" } */
/* { 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];
}