diff options
author | Oleg Endo <olegendo@gcc.gnu.org> | 2015-01-08 11:28:22 +0000 |
---|---|---|
committer | Oleg Endo <olegendo@gcc.gnu.org> | 2015-01-08 11:28:22 +0000 |
commit | 3b1406134b015b69561a2a26b0cc2a56ee35e5e6 (patch) | |
tree | 9aae0db66d8439be0ab02ccb57de9b9aa226674f /gcc | |
parent | 3aa8dfe36031ded18994076d290f1ed3456dc197 (diff) | |
download | gcc-3b1406134b015b69561a2a26b0cc2a56ee35e5e6.zip gcc-3b1406134b015b69561a2a26b0cc2a56ee35e5e6.tar.gz gcc-3b1406134b015b69561a2a26b0cc2a56ee35e5e6.tar.bz2 |
sh-mem.cc: Use constant as second operand when emitting tstsi_t insns.
gcc/
* config/sh/sh-mem.cc: Use constant as second operand when emitting
tstsi_t insns.
From-SVN: r219342
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sh/sh-mem.cc | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d5fcb3..bee5f1e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org> + * config/sh/sh-mem.cc: Use constant as second operand when emitting + tstsi_t insns. + +2015-01-08 Oleg Endo <olegendo@gcc.gnu.org> + PR target/55212 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of constant load if constant operand fits into I08. diff --git a/gcc/config/sh/sh-mem.cc b/gcc/config/sh/sh-mem.cc index 3d61c2a..7d170af 100644 --- a/gcc/config/sh/sh-mem.cc +++ b/gcc/config/sh/sh-mem.cc @@ -228,7 +228,7 @@ sh_expand_cmpstr (rtx *operands) if (align < 4) { emit_insn (gen_iorsi3 (tmp1, s1_addr, s2_addr)); - emit_insn (gen_tstsi_t (GEN_INT (3), tmp1)); + emit_insn (gen_tstsi_t (tmp1, GEN_INT (3))); jump = emit_jump_insn (gen_branch_false (L_loop_byte)); add_int_reg_note (jump, REG_BR_PROB, prob_likely); } @@ -373,7 +373,7 @@ sh_expand_cmpnstr (rtx *operands) if (align < 4) { emit_insn (gen_iorsi3 (tmp1, s1_addr, s2_addr)); - emit_insn (gen_tstsi_t (GEN_INT (3), tmp1)); + emit_insn (gen_tstsi_t (tmp1, GEN_INT (3))); jump = emit_jump_insn (gen_branch_false (L_loop_byte)); add_int_reg_note (jump, REG_BR_PROB, prob_likely); } @@ -581,7 +581,7 @@ sh_expand_strlen (rtx *operands) if (align < 4) { - emit_insn (gen_tstsi_t (GEN_INT (3), current_addr)); + emit_insn (gen_tstsi_t (current_addr, GEN_INT (3))); jump = emit_jump_insn (gen_branch_false (L_loop_byte)); add_int_reg_note (jump, REG_BR_PROB, prob_likely); } @@ -673,7 +673,7 @@ sh_expand_setmem (rtx *operands) if (align < 4) { - emit_insn (gen_tstsi_t (GEN_INT (3), dest_addr)); + emit_insn (gen_tstsi_t (dest_addr, GEN_INT (3))); jump = emit_jump_insn (gen_branch_false (L_loop_byte)); add_int_reg_note (jump, REG_BR_PROB, prob_likely); } |