[ARC] Update (u)maddsidi patterns.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 18 Dec 2017 15:26:47 +0000 (16:26 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 18 Dec 2017 15:26:47 +0000 (16:26 +0100)
commit0cf0bc67f6fad8653edb7656080f7f61394c92b4
treeb35c509aaca11819cc286ad05ee419d65418b7a9
parent2bd36ebab737f4bd3f5d306b269ffdff22eace4f
[ARC] Update (u)maddsidi patterns.

The accumulator registers are freely used by the compiler. However,
there are a number of instructions which are having an intrinsic use
of these registers. Update patterns to inform the compiler which ones.

gcc/
2017-09-19  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.md (maddsidi4, maddsidi4_split): Update pattern.
(umaddsidi4,umaddsidi4): Likewise.

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

* gcc.target/arc/tumaddsidi4.c: New test.

From-SVN: r255779
gcc/ChangeLog
gcc/config/arc/arc.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/tumaddsidi4.c [new file with mode: 0755]