diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 828390a7851..a11ec21bb26 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -16,6 +16,8 @@ Wed Dec 16 17:24:07 1998 Michael Hayes Tue Dec 15 13:49:55 1998 Jeffrey A Law (law@cygnus.com) + * mn10200.md (addsi3 expander): Use "nonmemory_operand" for operand 2. + * mn10300.md (bset, bclr): Operand 0 is a read/write operand. * mn10200.md (abssf2, negsf2): New expanders. diff --git a/gcc/config/mn10200/mn10200.md b/gcc/config/mn10200/mn10200.md index 2a693b4dbda..6ba15147827 100644 --- a/gcc/config/mn10200/mn10200.md +++ b/gcc/config/mn10200/mn10200.md @@ -371,10 +371,13 @@ ;; ;; 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 "register_operand" "")))] + (match_operand:SI 2 "nonmemory_operand" "")))] "" " {