From: Oleg Endo Date: Sun, 17 May 2015 21:01:29 +0000 (+0000) Subject: re PR target/54236 ([SH] Improve addc and subc insn utilization) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5a64dbf01a2f588cfe0b372c45d6258dfe873b8;p=gcc.git re PR target/54236 ([SH] Improve addc and subc insn utilization) gcc/ PR target/54236 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult. From-SVN: r223274 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a19c15863c5..d58a616f2bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-05-17 Oleg Endo + + PR target/54236 + * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult. + 2015-05-17 Uros Bizjak PR target/66174 diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index d3d7dee2863..eb6983aec97 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -2040,8 +2040,8 @@ (define_insn_and_split "*addc_2r_t" [(set (match_operand:SI 0 "arith_reg_dest") (plus:SI (match_operand 1 "treg_set_expr") - (mult:SI (match_operand:SI 2 "arith_reg_operand") - (const_int 2)))) + (ashift:SI (match_operand:SI 2 "arith_reg_operand") + (const_int 1)))) (clobber (reg:SI T_REG))] "TARGET_SH1 && can_create_pseudo_p ()" "#" @@ -2052,8 +2052,8 @@ (define_insn_and_split "*addc_2r_t" [(set (match_operand:SI 0 "arith_reg_dest") - (plus:SI (mult:SI (match_operand:SI 1 "arith_reg_operand") - (const_int 2)) + (plus:SI (ashift:SI (match_operand:SI 1 "arith_reg_operand") + (const_int 1)) (match_operand 2 "treg_set_expr"))) (clobber (reg:SI T_REG))] "TARGET_SH1 && can_create_pseudo_p ()"