2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / pr70809_1.c
blobdf88c71c42afc7fafff703f801bbfced8daafc95
1 /* PR target/70809. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftree-vectorize -ffp-contract=off -mtune=xgene1" } */
5 /* Check that vector FMLS is not generated when contraction is disabled. */
7 void
8 foo (float *__restrict__ __attribute__ ((aligned (16))) a,
9 float *__restrict__ __attribute__ ((aligned (16))) x,
10 float *__restrict__ __attribute__ ((aligned (16))) y,
11 float *__restrict__ __attribute__ ((aligned (16))) z)
13 unsigned i = 0;
14 for (i = 0; i < 256; i++)
15 a[i] = x[i] - (y[i] * z[i]);
18 /* { dg-final { scan-assembler-not "fmls\tv.*" } } */