From: David Edelsohn Date: Mon, 9 May 2005 22:04:48 +0000 (+0000) Subject: re PR target/21477 (adddi3 becomes external reference rather than instruction on... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a6ac6a5e6107c301a771ab2398ba3c3ae7ff946;p=gcc.git re PR target/21477 (adddi3 becomes external reference rather than instruction on powerpc64) PR target/21477 * config/rs6000/rs6000.md (add_op2): New. (add3): Use it. From-SVN: r99475 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6fd1afebdc..e78b8ae9a23 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-05-09 David Edelsohn + + PR target/21477 + * config/rs6000/rs6000.md (add_op2): New. + (add3): Use it. + 2005-05-09 Richard Earnshaw * arm.c (arm_gen_constant): Add new heuristic for generating diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 0c8abb10f29..c627daf2d77 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -1006,10 +1006,13 @@ ;; Fixed-point arithmetic insns. +(define_mode_attr add_op2 [(SI "reg_or_arith_cint_operand") + (DI "reg_or_add_cint64_operand")]) + (define_expand "add3" [(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 "" "")))] "" " {