arm.md (mulsidi3adddi, [...]): Revert previous change.
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2000 13:58:51 +0000 (13:58 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Mon, 13 Nov 2000 13:58:51 +0000 (13:58 +0000)
* arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
Rewrite to avoid use of match_dup.  Don't try to tie registers that
are not in the same mode.

From-SVN: r37425

gcc/ChangeLog
gcc/config/arm/arm.md

index 004b958145e7279ae3f357d4cc1d81c919e5e612..bb2a1c5ab32dd73ca10348056e67833d2e0ee170 100644 (file)
@@ -1,3 +1,9 @@
+2000-11-13  Richard Earnshaw  <rearnsha@arm.com>
+
+       * arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
+       Rewrite to avoid use of match_dup.  Don't try to tie registers that
+       are not in the same mode.
+
 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * invoke.texi: Update lists of languages and suffixes supported.
index a4d7b803321a66575248172a4d5f4248ad752d31..ddd6ace0933713df919ac5fac62ff10bf50751ad 100644 (file)
 ;; Unnamed template to match long long multiply-accumlate (smlal)
 
 (define_insn "*mulsidi3adddi"
-  [(set (match_operand:DI 0 "s_register_operand" "+&r,&r,&r")
+  [(set (match_operand:DI 0 "s_register_operand" "=&r")
        (plus:DI
         (mult:DI
-         (sign_extend:DI (match_operand:SI 2 "s_register_operand" "r,0,1"))
-         (sign_extend:DI (match_operand:SI 1 "s_register_operand" "%r,r,r")))
-        (match_dup 0)))]
+         (sign_extend:DI (match_operand:SI 2 "s_register_operand" "%r"))
+         (sign_extend:DI (match_operand:SI 3 "s_register_operand" "r")))
+        (match_operand:DI 1 "s_register_operand" "0")))]
   "TARGET_ARM && arm_fast_multiply"
-  "smlal%?\\t%Q0, %R0, %1, %2"
+  "smlal%?\\t%Q0, %R0, %3, %2"
   [(set_attr "type" "mult")
    (set_attr "predicable" "yes")]
 )
 ;; Unnamed template to match long long unsigned multiply-accumlate (umlal)
 
 (define_insn "*umulsidi3adddi"
-  [(set (match_operand:DI 0 "s_register_operand" "+&r,&r,&r")
+  [(set (match_operand:DI 0 "s_register_operand" "=&r")
        (plus:DI
         (mult:DI
-         (zero_extend:DI (match_operand:SI 2 "s_register_operand" "r,0,1"))
-         (zero_extend:DI (match_operand:SI 1 "s_register_operand" "%r,r,r")))
-        (match_dup 0)))]
+         (zero_extend:DI (match_operand:SI 2 "s_register_operand" "%r"))
+         (zero_extend:DI (match_operand:SI 3 "s_register_operand" "r")))
+        (match_operand:DI 1 "s_register_operand" "0")))]
   "TARGET_ARM && arm_fast_multiply"
-  "umlal%?\\t%Q0, %R0, %1, %2"
+  "umlal%?\\t%Q0, %R0, %3, %2"
   [(set_attr "type" "mult")
    (set_attr "predicable" "yes")]
 )