rl78.c: if operand 2 is const avoid addition with 0 and use incw and decw where possible
authorSebastian Perta <sebastian.perta@renesas.com>
Fri, 26 Jan 2018 10:55:31 +0000 (10:55 +0000)
committerSebastian Perta <sebastianperta@gcc.gnu.org>
Fri, 26 Jan 2018 10:55:31 +0000 (10:55 +0000)
commitb0679a787b46149408363a697afb2279e22504ad
treef79b160b8d141e0ba10c3b814bde07a1fed992ab
parent0547173960db190acc75e7017bf8d2e89706a5ee
rl78.c: if operand 2 is const avoid addition with 0 and use incw and decw where possible

2018-01-25  Sebastian Perta  <sebastian.perta@renesas.com>

* config/rl78/rl78.c: if operand 2 is const avoid addition with 0
and use incw and decw where possible
* testsuite/gcc.target/rl78/test_addsi3_internal.c: new file

From-SVN: r257079
gcc/ChangeLog
gcc/config/rl78/rl78.c
gcc/testsuite/gcc.target/rl78/test_addsi3_internal.c [new file with mode: 0644]