(mul*): Disallow multiply by constant.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 25 Feb 1994 11:42:11 +0000 (06:42 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 25 Feb 1994 11:42:11 +0000 (06:42 -0500)
From-SVN: r6621

gcc/config/alpha/alpha.md

index 7e1b798..15b05f4 100644 (file)
 (define_insn "mulsi3"
   [(set (match_operand:SI 0 "register_operand" "=r")
        (mult:SI (match_operand:SI 1 "reg_or_0_operand" "%rJ")
-                (match_operand:SI 2 "reg_or_8bit_operand" "rI")))]
+                (match_operand:SI 2 "reg_or_0_operand" "rJ")))]
   ""
-  "mull %r1,%2,%0"
+  "mull %r1,%r2,%0"
   [(set_attr "type" "imull")])
 
 (define_insn ""
   [(set (match_operand:DI 0 "register_operand" "=r")
        (sign_extend:DI (mult:SI (match_operand:SI 1 "reg_or_0_operand" "%rJ")
-                                (match_operand:SI 2 "reg_or_8bit_operand" "rI"))))]
+                                (match_operand:SI 2 "reg_or_0_operand" "rJ"))))]
   ""
-  "mull %r1,%2,%0"
+  "mull %r1,%r2,%0"
   [(set_attr "type" "imull")])
 
 (define_insn "muldi3"
   [(set (match_operand:DI 0 "register_operand" "=r")
        (mult:DI (match_operand:DI 1 "reg_or_0_operand" "%rJ")
-                (match_operand:DI 2 "reg_or_8bit_operand" "rI")))]
+                (match_operand:DI 2 "reg_or_0_operand" "rJ")))]
   ""
-  "mulq %r1,%2,%0"
+  "mulq %r1,%r2,%0"
   [(set_attr "type" "imulq")])
 \f
 ;; The divide and remainder operations always take their inputs from