For Amol Pise.
2013-01-27 Amol Pise <amolpise15@gmail.com> * gcc.target/arm/neon-vfnms-1.c: New test. * gcc.target/arm/neon-vfnma-1.c: New test. From-SVN: r195503
This commit is contained in:
parent
706b2314dd
commit
25350308a5
|
@ -1,3 +1,8 @@
|
||||||
|
2013-01-27 Amol Pise <amolpise15@gmail.com>
|
||||||
|
|
||||||
|
* gcc.target/arm/neon-vfnms-1.c: New test.
|
||||||
|
* gcc.target/arm/neon-vfnma-1.c: New test.
|
||||||
|
|
||||||
2013-01-27 Uros Bizjak <ubizjak@gmail.com>
|
2013-01-27 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
PR target/56114
|
PR target/56114
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target arm_neonv2_ok } */
|
||||||
|
/* { dg-options "-O2 -ftree-vectorize -ffast-math" } */
|
||||||
|
/* { dg-add-options arm_neonv2 } */
|
||||||
|
/* { dg-final { scan-assembler "vfnma\\.f32\[ \]+\[dDqQ]" } } */
|
||||||
|
|
||||||
|
/* Verify that VFNMA is used. */
|
||||||
|
void f1(int n, float a, float x[], float y[]) {
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < n; ++i)
|
||||||
|
y[i] = a * -x[i] - y[i];
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target arm_neonv2_ok } */
|
||||||
|
/* { dg-options "-O2 -ftree-vectorize -ffast-math" } */
|
||||||
|
/* { dg-add-options arm_neonv2 } */
|
||||||
|
/* { dg-final { scan-assembler "vfnms\\.f32\[ \]+\[dDqQ]" } } */
|
||||||
|
|
||||||
|
/* Verify that VFNMS is used. */
|
||||||
|
void f1(int n, float a, float x[], float y[]) {
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < n; ++i)
|
||||||
|
y[i] = a * x[i] - y[i];
|
||||||
|
}
|
Loading…
Reference in New Issue