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]

mn10200 improvement



This improves code generation on the mn10200 when incrementing an SImode
pseudo by a constant.


        * mn10200.md (addsi3 expander): Use "nonmemory_operand" for operand 2.

Index: mn10200.md
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/mn10200/mn10200.md,v
retrieving revision 1.57
diff -c -3 -p -r1.57 mn10200.md
*** mn10200.md	1998/12/16 04:54:42	1.57
--- mn10200.md	1998/12/16 06:43:37
***************
*** 371,380 ****
  ;;
  ;; So we call out to a library routine to perform 32bit add or
  ;; subtract operations.
  (define_expand "addsi3"
    [(set (match_operand:SI 0 "register_operand" "")
  	(plus:SI (match_operand:SI 1 "register_operand" "")
! 		 (match_operand:SI 2 "register_operand" "")))]
    ""
    "
  {
--- 371,383 ----
  ;;
  ;; So we call out to a library routine to perform 32bit add or
  ;; subtract operations.
+ ;;
+ ;; operand2 must be nonmemory_operand so that we will accept CONST_INTs
+ ;; during initial code generation.
  (define_expand "addsi3"
    [(set (match_operand:SI 0 "register_operand" "")
  	(plus:SI (match_operand:SI 1 "register_operand" "")
! 		 (match_operand:SI 2 "nonmemory_operand" "")))]
    ""
    "
  {


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