Commit ef9bf9a3 by Mark Mitchell Committed by Mark Mitchell

* gcc.dg/arm-vfp1.c: Remove test for fnegs.

From-SVN: r99528
parent 16df4ee6
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-*-*.
......
......@@ -14,7 +14,14 @@ void test_sf() {
/* { 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" } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment