public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* MIPS patch: extendsidi2
@ 1998-02-11 10:25 Gavin Koch
  1998-02-11 22:28 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Gavin Koch @ 1998-02-11 10:25 UTC (permalink / raw)
  To: egcs

OK to push?


	* mips.md (extendsidi2): Allow extension to/from a non-mips16 
	register.

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/06 20:07:02
***************
*** 3697,3709 ****
  ;; doing a move.
  
  (define_insn "extendsidi2"
!   [(set (match_operand:DI 0 "register_operand" "=d,*d,d,d")
! 	(sign_extend:DI (match_operand:SI 1 "nonimmediate_operand" "d,*x,R,m")))]
    "TARGET_64BIT"
    "* return mips_move_1word (operands, insn, FALSE);"
!   [(set_attr "type"	"move,hilo,load,load")
     (set_attr "mode"	"DI")
!    (set_attr "length"	"1,1,1,2")])
  
  ;; These patterns originally accepted general_operands, however, slightly
  ;; better code is generated by only accepting register_operands, and then
--- 3697,3709 ----
  ;; doing a move.
  
  (define_insn "extendsidi2"
!   [(set (match_operand:DI 0 "register_operand" "=d,y,d,*d,d,d")
! 	(sign_extend:DI (match_operand:SI 1 "nonimmediate_operand" "d,d,y,*x,R,m")))]
    "TARGET_64BIT"
    "* return mips_move_1word (operands, insn, FALSE);"
!   [(set_attr "type"	"move,move,move,hilo,load,load")
     (set_attr "mode"	"DI")
!    (set_attr "length"	"1,1,1,1,1,2")])
  
  ;; These patterns originally accepted general_operands, however, slightly
  ;; better code is generated by only accepting register_operands, and then


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

* Re: MIPS patch: extendsidi2
  1998-02-11 10:25 MIPS patch: extendsidi2 Gavin Koch
@ 1998-02-11 22:28 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-02-11 22:28 UTC (permalink / raw)
  To: Gavin Koch; +Cc: egcs

  In message < m0y2eyf-0006vBC@cetus.cygnus.com >you write:
  > 
  > 
  > 
  > OK to push?
  > 
  > 
  > 	* mips.md (extendsidi2): Allow extension to/from a non-mips16 
  > 	register.
Looks reasonable to me.  Please install it.

jeff

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-11 10:25 MIPS patch: extendsidi2 Gavin Koch
1998-02-11 22:28 ` 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).