re PR target/21477 (adddi3 becomes external reference rather than instruction on...
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 9 May 2005 22:04:48 +0000 (22:04 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 9 May 2005 22:04:48 +0000 (18:04 -0400)
        PR target/21477
        * config/rs6000/rs6000.md (add_op2): New.
        (add<mode>3): Use it.

From-SVN: r99475

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index e6fd1af..e78b8ae 100644 (file)
@@ -1,3 +1,9 @@
+2005-05-09  David Edelsohn  <edelsohn@gnu.org>
+
+        PR target/21477
+        * config/rs6000/rs6000.md (add_op2): New.
+        (add<mode>3): Use it.
+
 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
 
        * arm.c (arm_gen_constant): Add new heuristic for generating
index 0c8abb1..c627daf 100644 (file)
 
 ;; Fixed-point arithmetic insns.
 
+(define_mode_attr add_op2 [(SI "reg_or_arith_cint_operand")
+                          (DI "reg_or_add_cint64_operand")])
+
 (define_expand "add<mode>3"
   [(set (match_operand:SDI 0 "gpc_reg_operand" "")
        (plus:SDI (match_operand:SDI 1 "gpc_reg_operand" "")
-                 (match_operand:SDI 2 "reg_or_arith_cint_operand" "")))]
+                 (match_operand:SDI 2 "<add_op2>" "")))]
   ""
   "
 {