* gcc.dg/arm-vfp1.c: Remove test for fnegs.
From-SVN: r99528
This commit is contained in:
parent
16df4ee6c2
commit
ef9bf9a30a
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
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" } } */
|
||||
|
|
Loading…
Add table
Reference in a new issue