[ARC] Update movhi and movdi patterns.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 30 Apr 2018 13:15:35 +0000 (15:15 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 30 Apr 2018 13:15:35 +0000 (15:15 +0200)
commit2295aa75224be0b765cf5c58865e97d094990579
treee5335eb0207fadcc76a43593635d2ad223ebd47d
parente2df7e6df4b08b930bb0045cdb626dd4940f46ae
[ARC] Update movhi and movdi patterns.

Allow signed 6-bit short immediates into st[d] instructions.

2017-10-19  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_split_move): Allow signed 6-bit constants
as source of std instructions.
* config/arc/arc.md (movsi_insn): Update pattern predicate to
allow 6-bit constants as source for store instructions.
(movdi_insn): Update instruction pattern to allow 6-bit constants
as source for store instructions.

testsuite/
2017-10-19  Claudiu Zissulescu  <claziss@synopsys.com>

* gcc.target/arc/store-merge-1.c: New test.
* gcc.target/arc/add_n-combine.c: Update test.

From-SVN: r259762
gcc/ChangeLog
gcc/config/arc/arc.c
gcc/config/arc/arc.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/add_n-combine.c
gcc/testsuite/gcc.target/arc/store-merge-1.c [new file with mode: 0644]