This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix for k6 crash


Hi
the failure of loop instruction reported in PR 2676 is caused by
underestimating size of mov instruction caused by extra 'm' constraint.

OK for mainline/branch?

bootstrapped on i586
Honza
Thu Jun 21 20:10:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
	* i386.md (movsi_1): Fix constraints. (PR target/2676)

Index: config/i386/i386.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.md,v
retrieving revision 1.276
diff -c -3 -p -r1.276 i386.md
*** i386.md	2001/06/16 10:48:06	1.276
--- i386.md	2001/06/21 18:10:45
***************
*** 1734,1740 ****
  
  (define_insn "*movsi_1"
    [(set (match_operand:SI 0 "nonimmediate_operand" "=*a,r,*a,m,!*y,!rm,!*Y,!rm,!*Y")
! 	(match_operand:SI 1 "general_operand" "im,rinm,rinm,rin,rm,*y,rm,*Y,*Y"))]
    "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM"
    "*
  {
--- 1734,1740 ----
  
  (define_insn "*movsi_1"
    [(set (match_operand:SI 0 "nonimmediate_operand" "=*a,r,*a,m,!*y,!rm,!*Y,!rm,!*Y")
! 	(match_operand:SI 1 "general_operand" "i,rinm,rinm,rin,rm,*y,rm,*Y,*Y"))]
    "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM"
    "*
  {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]