From 9116497e24cabce51f2070bf8e754e63263c3965 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 26 Jan 1993 15:22:13 -0800 Subject: (umulsidi3+1): Add variant which accepts constants. From-SVN: r3353 --- gcc/config/i960/i960.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gcc') diff --git a/gcc/config/i960/i960.md b/gcc/config/i960/i960.md index 8a42206..33c5d95 100644 --- a/gcc/config/i960/i960.md +++ b/gcc/config/i960/i960.md @@ -1494,6 +1494,19 @@ }" [(set_attr "type" "mult")]) +(define_insn "" + [(set (match_operand:DI 0 "register_operand" "=d") + (mult:DI (zero_extend:DI (match_operand:SI 1 "register_operand" "%d")) + (match_operand:SI 2 "literal" "I"))))] + "" + "* +{ + if (i960_bypass (insn, operands[1], operands[2], 0)) + return \"emul %2,%1,%0\"; + return \"emul %1,%2,%0\"; +}" + [(set_attr "type" "mult")]) + ;; This goes after the move/add/sub/mul instructions ;; because those instructions are better when they apply. -- cgit v1.1