[ARC] Update legitimate constant hook.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 18 Dec 2017 15:26:35 +0000 (16:26 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 18 Dec 2017 15:26:35 +0000 (16:26 +0100)
commit2bd36ebab737f4bd3f5d306b269ffdff22eace4f
tree3e47e4584d2c2b27eb49acb0453840881ef15123
parent4aeba1b7659603e49b8edfc0d64aa7790d2ef3fe
[ARC] Update legitimate constant hook.

Make sure we check the constants in all cases.

gcc/
2017-10-14  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_legitimate_constant_p): Always check all
constants.

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

* gcc.target/arc/tls-1.c: New test.

From-SVN: r255778
gcc/ChangeLog
gcc/config/arc/arc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/tls-1.c [new file with mode: 0644]