diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/neon-vmla-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/arm/neon-vmla-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/neon-vmla-1.c b/gcc/testsuite/gcc.target/arm/neon-vmla-1.c new file mode 100644 index 000000000..9d239ed47 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/neon-vmla-1.c @@ -0,0 +1,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]; +} |