]> git.ipfire.org Git - thirdparty/gcc.git/commit
[ARC] Handle complex PIC move patterns.
authorclaziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2017 12:55:38 +0000 (12:55 +0000)
committerclaziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2017 12:55:38 +0000 (12:55 +0000)
commitafd80b00e766c511245e7a485d910bb5c4eb97f8
treeccf1113962d544a11955c333d4a591a72daa3b44
parent11c999a24f3807fe5121bede6c60a0367865403b
[ARC] Handle complex PIC move patterns.

fwprop step is placing in the REG_EQUIV notes constant pic unspecs
expressions.  Then, loop may use these notes for optimizations
rezulting in complex patterns that are not supported by the current
implementation.

The patch adds handling of complex PIC addresses having MINUS or UNARY
operations.

gcc/
2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
expressions with MINUS and UNARY ops.

gcc/testsuite
2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

* gcc.target/arc/pr9001090948.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246087 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/arc/arc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/pr9001090948.c [new file with mode: 0644]