gcc-2.7 creates faster code than pgcc-1.1.1
H.J. Lu
hjl@varesearch.com
Thu Mar 4 14:31:00 GMT 1999
Hi,
It seems that "movzb? %al,%?ax" may be faster than "and? $255,%?ax".
This patch for egcs 1.1.2 seems to make gzip faster.
Thanks.
--
H.J. Lu (hjl@gnu.org)
---
Thu Mar 4 14:04:49 1999 H.J. Lu (hjl@gnu.org)
* config/i386/i386.md (zero_extendqihi2): Use "and" when target
and source are both "ax" only if TARGET_ZERO_EXTEND_WITH_AND is
true.
(zero_extendqisi2): Likewise.
--- ../../../import/egcs-1.1.x/egcs/gcc/config/i386/i386.md Sun Feb 14 08:30:40 1999
+++ config/i386/i386.md Thu Mar 4 13:46:07 1999
@@ -1738,7 +1741,7 @@
{
rtx xops[2];
- if ((TARGET_ZERO_EXTEND_WITH_AND || REGNO (operands[0]) == 0)
+ if ((TARGET_ZERO_EXTEND_WITH_AND || (0 & REGNO (operands[0]) == 0))
&& REG_P (operands[1])
&& REGNO (operands[0]) == REGNO (operands[1]))
{
@@ -1819,7 +1822,7 @@
{
rtx xops[2];
- if ((TARGET_ZERO_EXTEND_WITH_AND || REGNO (operands[0]) == 0)
+ if ((TARGET_ZERO_EXTEND_WITH_AND || (0 & REGNO (operands[0]) == 0))
&& REG_P (operands[1])
&& REGNO (operands[0]) == REGNO (operands[1]))
{
More information about the Gcc
mailing list