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:
parent
a7fef189d8
commit
7cac54fb0d
@ -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.
|
||||
|
19
gcc/testsuite/gcc.target/aarch64/fmls.c
Normal file
19
gcc/testsuite/gcc.target/aarch64/fmls.c
Normal 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" } } */
|
Loading…
Reference in New Issue
Block a user