This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
-mcpu=pentium + -Os crash fix
- To: egcs-patches at egcs dot cygnus dot com, rth at cygnus dot com
- Subject: -mcpu=pentium + -Os crash fix
- From: Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>
- Date: Fri, 19 Nov 1999 15:41:47 +0100
Hi
This patch fixes the -mpentium -Os crash I've introduced by my divmod
patterns tweaks.
OK to install?
Honza
Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
* i386.md (ashrsi3_31): Allow cltd when optimizing for size even
on !TARGET_USE_CLTD CPUs.
*** or/i386.md Fri Nov 19 06:17:19 1999
--- i386.md Fri Nov 19 06:23:48 1999
***************
*** 5451,5457 ****
(ashiftrt:SI (match_operand:SI 1 "nonimmediate_operand" "*a,0")
(match_operand:SI 2 "const_int_operand" "i,i")))
(clobber (reg:CC 17))]
! "INTVAL (operands[2]) == 31 && TARGET_USE_CLTD"
"@
{cltd|cdq}
sar{l}\\t{%2, %0|%0, %2}"
--- 5440,5446 ----
(ashiftrt:SI (match_operand:SI 1 "nonimmediate_operand" "*a,0")
(match_operand:SI 2 "const_int_operand" "i,i")))
(clobber (reg:CC 17))]
! "INTVAL (operands[2]) == 31 && (TARGET_USE_CLTD || optimize_size)"
"@
{cltd|cdq}
sar{l}\\t{%2, %0|%0, %2}"