This is the mail archive of the gcc-patches@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]

More PA64 infrastructure



We're going to need different matchers for 64bit add/sub (and others)...

        * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
        pair.

Index: pa.md
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/pa/pa.md,v
retrieving revision 1.150
diff -c -3 -p -r1.150 pa.md
*** pa.md	1999/07/28 22:51:22	1.150
--- pa.md	1999/07/28 23:18:37
***************
*** 3165,3171 ****
  
  ;;- arithmetic instructions
  
! (define_insn "adddi3"
    [(set (match_operand:DI 0 "register_operand" "=r")
  	(plus:DI (match_operand:DI 1 "register_operand" "%r")
  		 (match_operand:DI 2 "arith11_operand" "rI")))]
--- 3165,3178 ----
  
  ;;- arithmetic instructions
  
! (define_expand "adddi3"
!   [(set (match_operand:DI 0 "register_operand" "")
! 	(plus:DI (match_operand:DI 1 "register_operand" "")
! 		 (match_operand:DI 2 "arith11_operand" "")))]
!   ""
!   "")
! 
! (define_insn ""
    [(set (match_operand:DI 0 "register_operand" "=r")
  	(plus:DI (match_operand:DI 1 "register_operand" "%r")
  		 (match_operand:DI 2 "arith11_operand" "rI")))]
***************
*** 3290,3296 ****
    [(set_attr "type" "binary")
     (set_attr "length" "8")])
  
! (define_insn "subdi3"
    [(set (match_operand:DI 0 "register_operand" "=r")
  	(minus:DI (match_operand:DI 1 "register_operand" "r")
  		  (match_operand:DI 2 "register_operand" "r")))]
--- 3297,3310 ----
    [(set_attr "type" "binary")
     (set_attr "length" "8")])
  
! (define_expand "subdi3"
!   [(set (match_operand:DI 0 "register_operand" "")
! 	(minus:DI (match_operand:DI 1 "register_operand" "")
! 		  (match_operand:DI 2 "register_operand" "")))]
!   ""
!   "")
! 
! (define_insn ""
    [(set (match_operand:DI 0 "register_operand" "=r")
  	(minus:DI (match_operand:DI 1 "register_operand" "r")
  		  (match_operand:DI 2 "register_operand" "r")))]





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