diff options
author | Oleg Endo <olegendo@gcc.gnu.org> | 2012-07-23 22:51:38 +0000 |
---|---|---|
committer | Oleg Endo <olegendo@gcc.gnu.org> | 2012-07-23 22:51:38 +0000 |
commit | dad6fafd3eb373e00aa2dfc827ec9d24a897ddc1 (patch) | |
tree | 53a8fcd9f0e2d2060175dc1fc99e4feb7e531a33 /gcc | |
parent | 8046c604274b3c68eadf882f30b5642ad3b86a3c (diff) | |
download | gcc-dad6fafd3eb373e00aa2dfc827ec9d24a897ddc1.zip gcc-dad6fafd3eb373e00aa2dfc827ec9d24a897ddc1.tar.gz gcc-dad6fafd3eb373e00aa2dfc827ec9d24a897ddc1.tar.bz2 |
sh.md (addc1, subc1): Delete.
* config/sh/sh.md (addc1, subc1): Delete.
(adddi3_compact): Use addc instead of addc1.
(subdi3_compact): Use subc instead of subc1.
From-SVN: r189795
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/sh/sh.md | 24 |
2 files changed, 8 insertions, 22 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 20c0fcd..76872a6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-07-23 Oleg Endo <olegendo@gcc.gnu.org> + + * config/sh/sh.md (addc1, subc1): Delete. + (adddi3_compact): Use addc instead of addc1. + (subdi3_compact): Use subc instead of subc1. + 2012-07-23 Uros Bizjak <ubizjak@gmail.com> * config/i386/i386-protos.c (ix86_lea_outperforms): Remove prototype. diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 35764f8..9d3e0c4 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -1447,7 +1447,7 @@ emit_insn (gen_clrt ()); emit_insn (gen_addc (low0, low0, gen_lowpart (SImode, operands[2]))); - emit_insn (gen_addc1 (high0, high0, high2)); + emit_insn (gen_addc (high0, high0, high2)); DONE; }) @@ -1462,16 +1462,6 @@ "addc %2,%0" [(set_attr "type" "arith")]) -(define_insn "addc1" - [(set (match_operand:SI 0 "arith_reg_dest" "=r") - (plus:SI (plus:SI (match_operand:SI 1 "arith_reg_operand" "0") - (match_operand:SI 2 "arith_reg_operand" "r")) - (reg:SI T_REG))) - (clobber (reg:SI T_REG))] - "TARGET_SH1" - "addc %2,%0" - [(set_attr "type" "arith")]) - (define_expand "addsi3" [(set (match_operand:SI 0 "arith_reg_operand" "") (plus:SI (match_operand:SI 1 "arith_operand" "") @@ -1565,7 +1555,7 @@ emit_insn (gen_clrt ()); emit_insn (gen_subc (low0, low0, gen_lowpart (SImode, operands[2]))); - emit_insn (gen_subc1 (high0, high0, high2)); + emit_insn (gen_subc (high0, high0, high2)); DONE; }) @@ -1582,16 +1572,6 @@ "subc %2,%0" [(set_attr "type" "arith")]) -(define_insn "subc1" - [(set (match_operand:SI 0 "arith_reg_dest" "=r") - (minus:SI (minus:SI (match_operand:SI 1 "arith_reg_operand" "0") - (match_operand:SI 2 "arith_reg_operand" "r")) - (reg:SI T_REG))) - (clobber (reg:SI T_REG))] - "TARGET_SH1" - "subc %2,%0" - [(set_attr "type" "arith")]) - ;; life_analysis thinks rn is live before subc rn,rn, so make a special ;; pattern for this case. This helps multimedia applications that compute ;; the sum of absolute differences. |