1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_neonv2_ok } */
3 /* { dg-options "-O2 -ftree-vectorize -ffast-math" } */
4 /* { dg-add-options arm_neonv2 } */
5 /* { dg-final { scan-assembler "vfma\\.f32\[ \]+\[dDqQ]" } } */
7 /* Verify that VFMA is used. */
8 void f1(int n
, float a
, float x
[], float y
[]) {
10 for (i
= 0; i
< n
; ++i
)
11 y
[i
] = a
* x
[i
] + y
[i
];