mn10300: Use reg_or_am33_const_operand in mulsi3.
authorRichard Henderson <rth@redhat.com>
Wed, 19 Jan 2011 19:33:44 +0000 (11:33 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 19 Jan 2011 19:33:44 +0000 (11:33 -0800)
From-SVN: r169017

gcc/ChangeLog
gcc/config/mn10300/mn10300.md

index ddb6b99f6bd36e8b6749e410d907a5d7fa453ba8..edd22f1a81738765c323e0af2ec0a3f7ed533312 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-19  Richard Henderson  <rth@redhat.com>
+
+       * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
+       (*mulsi3): Likewise.
+
 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
index bb95b3734cc365ee4c78bcf87c0e081f6ccdaa79..57606e492af13e69c306f38a414f094e20998761 100644 (file)
 )
 
 (define_expand "mulsi3"
-  [(parallel [(set (match_operand:SI          0 "register_operand"  "")
-                  (mult:SI (match_operand:SI 1 "register_operand"  "")
-                           (match_operand:SI 2 "nonmemory_operand" "")))
-             (clobber (match_scratch:SI      3 ""))
+  [(parallel [(set (match_operand:SI          0 "register_operand")
+                  (mult:SI (match_operand:SI 1 "register_operand")
+                           (match_operand:SI 2 "reg_or_am33_const_operand")))
+             (clobber (match_scratch:SI      3))
              (clobber (reg:CC CC_REG))])]
   ""
 )
 
 (define_insn "*mulsi3"
-  [(set (match_operand:SI          0 "register_operand"  "=D, r,r")
-       (mult:SI (match_operand:SI 2 "register_operand"  "%0, 0,r")
-                (match_operand:SI 3 "nonmemory_operand" " D,ri,r")))
-   (clobber (match_scratch:SI      1                     "=z, z,r"))
+  [(set (match_operand:SI          0 "register_operand"          "=D, r,r")
+       (mult:SI (match_operand:SI 2 "register_operand"          "%0, 0,r")
+                (match_operand:SI 3 "reg_or_am33_const_operand" " D,ri,r")))
+   (clobber (match_scratch:SI      1                             "=z, z,r"))
    (clobber (reg:CC CC_REG))]
   ""
 {