2.96 19991025 x86 minor codegen bug
Richard Henderson
rth@cygnus.com
Tue Oct 26 13:11:00 GMT 1999
On Mon, Oct 25, 1999 at 09:18:41PM +0930, Alan Modra wrote:
> gcc.c-torture/compile/980506-1.c and gcc.c-torture/compile/980701-1.c are
> failing with recent CVS sources dues to generating:
>
> andl $255, %ax
Untested, but this should fix it.
r~
* i386.md (zero_extendqihi2): Use SImode register name with andl.
Index: i386.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.md,v
retrieving revision 1.97
diff -c -p -d -r1.97 i386.md
*** i386.md 1999/10/25 06:30:37 1.97
--- i386.md 1999/10/26 20:09:08
***************
*** 2097,2103 ****
if (!REG_P (operands[1]) || REGNO (operands[0]) != REGNO (operands[1]))
abort ();
operands[1] = GEN_INT (0xff);
! return \"and{l}\\t{%1, %0|%0, %1}\";
default:
return \"movz{bw|x}\\t{%1, %0|%0, %1}\";
}
--- 2097,2103 ----
if (!REG_P (operands[1]) || REGNO (operands[0]) != REGNO (operands[1]))
abort ();
operands[1] = GEN_INT (0xff);
! return \"and{l}\\t{%1, %k0|%k0, %1}\";
default:
return \"movz{bw|x}\\t{%1, %0|%0, %1}\";
}
More information about the Gcc-patches
mailing list