OSDN Git Service

(mulsi3): Changed into define_expand. Split insn into m68k and
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Mar 1997 19:50:42 +0000 (19:50 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Mar 1997 19:50:42 +0000 (19:50 +0000)
coldfire specific versions with appropriate constraints.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13798 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/m68k/m68k.md

index 51a8075..31e9a48 100644 (file)
 #endif
 }")
 
-(define_insn "mulsi3"
+(define_expand "mulsi3"
+  [(set (match_operand:SI 0 "general_operand" "")
+       (mult:SI (match_operand:SI 1 "general_operand" "")
+                (match_operand:SI 2 "general_operand" "")))]
+  "TARGET_68020 || TARGET_5200"
+  "")
+
+(define_insn ""
   [(set (match_operand:SI 0 "general_operand" "=d")
        (mult:SI (match_operand:SI 1 "general_operand" "%0")
                 (match_operand:SI 2 "general_operand" "dmsK")))]
-  "TARGET_68020 || TARGET_5200"
+  "TARGET_68020"
+  "muls%.l %2,%0")
+
+(define_insn ""
+  [(set (match_operand:SI 0 "general_operand" "=d")
+       (mult:SI (match_operand:SI 1 "general_operand" "%0")
+                (match_operand:SI 2 "general_operand" "d<>")))]
+  "TARGET_5200"
   "muls%.l %2,%0")
 
 (define_insn "umulhisi3"