pa.md (fmpyadd peepholes): Cleanups suggested by Tege.

From-SVN: r3125
This commit is contained in:
Jeff Law 1993-01-06 12:41:32 -07:00
parent 88e5c02973
commit 19386a3e5a
1 changed files with 24 additions and 4 deletions

View File

@ -2651,9 +2651,19 @@
"*
{
if (GET_MODE (operands[0]) == DFmode)
return \"fmpyadd,dbl %1,%2,%0,%4,%3\";
{
if (rtx_equal_p (operands[5], operands[3])
return \"fmpyadd,dbl %1,%2,%0,%4,%3\";
else
return \"fmpyadd,dbl %1,%2,%0,%5,%3\";
}
else
return \"fmpyadd,sgl %1,%2,%0,%4,%3\";
{
if (rtx_equal_p (operands[5], operands[3])
return \"fmpyadd,sgl %1,%2,%0,%4,%3\";
else
return \"fmpyadd,sgl %1,%2,%0,%5,%3\";
}
}")
@ -2668,9 +2678,19 @@
"*
{
if (GET_MODE (operands[0]) == DFmode)
return \"fmpyadd,dbl %1,%2,%0,%4,%3\";
{
if (rtx_equal_p (operands[3], operands[5]))
return \"fmpyadd,dbl %1,%2,%0,%4,%3\";
else
return \"fmpyadd,dbl %1,%2,%0,%5,%3\";
}
else
return \"fmpyadd,sgl %1,%2,%0,%4,%3\";
{
if (rtx_equal_p (operands[3], operands[5]))
return \"fmpyadd,sgl %1,%2,%0,%4,%3\";
else
return \"fmpyadd,sgl %1,%2,%0,%5,%3\";
}
}")
;; Note fsub subtracts the second operand from the first while fmpysub