diff options
author | Oleg Endo <olegendo@gcc.gnu.org> | 2018-02-16 13:52:49 +0000 |
---|---|---|
committer | Oleg Endo <olegendo@gcc.gnu.org> | 2018-02-16 13:52:49 +0000 |
commit | d960ab7b8daceba84413b25d91c2410eec1bbde2 (patch) | |
tree | bdc2d0fef3edb983caddaf0691a6a2360da3cb80 /gcc/config/rx | |
parent | be77ba2a461eefdf4a2676b19025f36ec092c598 (diff) | |
download | gcc-d960ab7b8daceba84413b25d91c2410eec1bbde2.zip gcc-d960ab7b8daceba84413b25d91c2410eec1bbde2.tar.gz gcc-d960ab7b8daceba84413b25d91c2410eec1bbde2.tar.bz2 |
re PR target/83831 ([RX] Unused bclr,bnot,bset insns)
gcc/
PR target/83831
* config/rx/rx.c (rx_fuse_in_memory_bitop): Convert shift operand
to QImode.
gcc/testsuite/
PR target/83831
* gcc.target/rx/pr83831.c (test_3, test_6): Adjust test cases.
From-SVN: r257735
Diffstat (limited to 'gcc/config/rx')
-rw-r--r-- | gcc/config/rx/rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index 0eaf418..de7af86 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@ -3515,7 +3515,7 @@ rx_fuse_in_memory_bitop (rtx* operands, rtx_insn* curr_insn, if (volatile_insn_p (PATTERN (i)) || CALL_P (i)) return false; - emit_insn (gen_insn (mem, operands[1])); + emit_insn (gen_insn (mem, gen_lowpart (QImode, operands[1]))); set_insn_deleted (op2_def.insn); set_insn_deleted (op0_use); return true; |