fmls.c: New test.

2017-11-17  Steve Ellcey  <sellcey@cavium.com>

	* gcc.target/aarch64/fmls.c: New test.

From-SVN: r254906
This commit is contained in:
Steve Ellcey 2017-11-17 22:56:52 +00:00 committed by Steve Ellcey
parent a7fef189d8
commit 7cac54fb0d
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2017-11-17 Steve Ellcey <sellcey@cavium.com>
* gcc.target/aarch64/fmls.c: New test.
2017-11-17 Steve Ellcey <sellcey@cavium.com>
* gcc.target/aarch64/pr81356.c: New test.

View File

@ -0,0 +1,19 @@
/* { dg-do compile } */
/* { dg-options "-O3" } */
#define vector __attribute__((vector_size(16)))
vector double a = {1.0,1.0};
vector double b = {2.0,2.0};
double x = 3.0;
void __attribute__ ((noinline))
vf (double x, vector double *v1, vector double *v2, vector double *result)
{
vector double s = v1[0];
vector double t = -v2[0];
vector double m = {x,x};
vector double r = t * m + s;
result[0] = r;
}
/* { dg-final { scan-assembler-not "dup" } } */