This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 2.96 19991025 x86 minor codegen bug
- To: Alan Modra <alan at SPRI dot Levels dot UniSA dot Edu dot Au>
- Subject: Re: 2.96 19991025 x86 minor codegen bug
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 26 Oct 1999 13:11:21 -0700
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <Pine.LNX.4.10.9910252056460.4119-100000@mullet.itr.unisa.edu.au>
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}\";
}