pa.md (adddi3, subdi3): Turn into a define_expand/define_insn pair.
authorJeffrey A Law <law@cygnus.com>
Wed, 28 Jul 1999 23:19:44 +0000 (23:19 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 28 Jul 1999 23:19:44 +0000 (17:19 -0600)
        * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
        pair.

From-SVN: r28328

gcc/ChangeLog
gcc/config/pa/pa.md

index cd22387d8f45c95df7b24d3de245f7ce26e2e6b7..d46984982090cee29a076d9b69d6fd84feecf9b5 100644 (file)
@@ -1,5 +1,8 @@
 Wed Jul 28 13:18:35 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
+       pair.
+
        * pa.c (store_reg): Do not call add_high_const generator directly.
        (load_reg, set_reg_plus_d): Likewise.
        * pa.md (add_high_const): No longer a named pattern.
index b2c4c8cb444e77f35c16ddf4e4b7d17f24d6d01c..7fdbab033623f21f5039a2d96b55592e25dc530d 100644 (file)
 \f
 ;;- arithmetic instructions
 
-(define_insn "adddi3"
+(define_expand "adddi3"
+  [(set (match_operand:DI 0 "register_operand" "")
+       (plus:DI (match_operand:DI 1 "register_operand" "")
+                (match_operand:DI 2 "arith11_operand" "")))]
+  ""
+  "")
+
+(define_insn ""
   [(set (match_operand:DI 0 "register_operand" "=r")
        (plus:DI (match_operand:DI 1 "register_operand" "%r")
                 (match_operand:DI 2 "arith11_operand" "rI")))]
   [(set_attr "type" "binary")
    (set_attr "length" "8")])
 
-(define_insn "subdi3"
+(define_expand "subdi3"
+  [(set (match_operand:DI 0 "register_operand" "")
+       (minus:DI (match_operand:DI 1 "register_operand" "")
+                 (match_operand:DI 2 "register_operand" "")))]
+  ""
+  "")
+
+(define_insn ""
   [(set (match_operand:DI 0 "register_operand" "=r")
        (minus:DI (match_operand:DI 1 "register_operand" "r")
                  (match_operand:DI 2 "register_operand" "r")))]