public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* 'nother 64bit mips16 patch
@ 1998-02-10  9:57 Gavin Koch
  1998-02-11  0:47 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Gavin Koch @ 1998-02-10  9:57 UTC (permalink / raw)
  To: egcs

For the 4100 -mips16, the following testcase aborts in
emit_move_insn when it check for compatible modes.  

OK to push?
                             -gavin...



./cc1 xx.c -quiet -mips16 -O1 -w -o xx.s 

long long x=0;y(){x=0;}



	* mips/mips.md (movdi): These PLUS's need to be Pmode.

Index: mips.md
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/mips/mips.md,v
retrieving revision 1.95
diff -c -r1.95 mips.md
*** mips.md	1998/01/23 07:20:09	1.95
--- mips.md	1998/02/07 15:36:33
***************
*** 4510,4516 ****
  	    }
  
  	  emit_move_insn (operands[0],
! 			  gen_rtx (PLUS, SImode, base_reg,
  				   mips16_gp_offset (operands[1])));
  	  DONE;
  	}
--- 4510,4516 ----
  	    }
  
  	  emit_move_insn (operands[0],
! 			  gen_rtx (PLUS, Pmode, base_reg,
  				   mips16_gp_offset (operands[1])));
  	  DONE;
  	}
***************
*** 4902,4908 ****
  	  emit_move_insn (base_reg, mips16_gp_pseudo_reg ());
  
  	  emit_move_insn (operands[0],
! 			  gen_rtx (PLUS, SImode, base_reg,
  				   mips16_gp_offset (operands[1])));
  	  DONE;
  	}
--- 4902,4908 ----
  	  emit_move_insn (base_reg, mips16_gp_pseudo_reg ());
  
  	  emit_move_insn (operands[0],
! 			  gen_rtx (PLUS, Pmode, base_reg,
  				   mips16_gp_offset (operands[1])));
  	  DONE;
  	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 'nother 64bit mips16 patch
  1998-02-10  9:57 'nother 64bit mips16 patch Gavin Koch
@ 1998-02-11  0:47 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-02-11  0:47 UTC (permalink / raw)
  To: Gavin Koch; +Cc: egcs

  In message < m0y2Ifw-0006vBC@cetus.cygnus.com >you write:
  > 
  > For the 4100 -mips16, the following testcase aborts in
  > emit_move_insn when it check for compatible modes.  
  > 
  > OK to push?
  >                              -gavin...
  > 
  > 
  > 
  > ./cc1 xx.c -quiet -mips16 -O1 -w -o xx.s 
  > 
  > long long x=0;y(){x=0;}
  > 
  > 
  > 
  > 	* mips/mips.md (movdi): These PLUS's need to be Pmode.
Looks correct to me.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-11  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-10  9:57 'nother 64bit mips16 patch Gavin Koch
1998-02-11  0:47 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).