+2005-05-10 Mark Mitchell <mark@codesourcery.com>
+
+ * gcc.dg/arm-vfp1.c: Remove test for fnegs.
+
2005-05-10 Bob Wilson <bob.wilson@acm.org>
* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
/* { dg-final { scan-assembler "fabss" } } */
f1 = fabsf (f1);
/* negsf2_vfp */
- /* { dg-final { scan-assembler "fnegs" } } */
+ /* There is no test for "fnegs" because the compiler will use an
+ integer operation instead to implement this operation. Adding
+ complexity to the operand (e.g., "-(f1 + f2)") doesn't change the
+ situation, as the compiler still wants the result in an integer
+ register before writing it back to memory. If we used an ABI that
+ required passing floating-point values in VFP registers that
+ would likely persuade the compiler to keep the value in the VFP
+ registers. */
f1 = -f1;
/* addsf3_vfp */
/* { dg-final { scan-assembler "fadds" } } */