summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/pr70809_1.c
blob: df88c71c42afc7fafff703f801bbfced8daafc95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/70809.  */
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -ffp-contract=off -mtune=xgene1" } */

/* Check that vector FMLS is not generated when contraction is disabled.  */

void
foo (float *__restrict__ __attribute__ ((aligned (16))) a,
     float *__restrict__ __attribute__ ((aligned (16))) x,
     float *__restrict__ __attribute__ ((aligned (16))) y,
     float *__restrict__ __attribute__ ((aligned (16))) z)
{
  unsigned i = 0;
  for (i = 0; i < 256; i++)
    a[i] = x[i] - (y[i] * z[i]);
}

/* { dg-final { scan-assembler-not "fmls\tv.*" } } */