[ARC] Fix emitting TLS symbols.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 22 Jul 2019 07:06:37 +0000 (09:06 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 22 Jul 2019 07:06:37 +0000 (09:06 +0200)
commit4be6c9b9a2085b32be37df4216c37b395c7bd1a2
tree91647b5f3e6f07bd833f12aa9073ce0996030c3d
parent9e23d3bb28fc1efe3ed4eea47922291ad1311264
[ARC] Fix emitting TLS symbols.

When storing a TLS symbol to memory, always use an intermediate register to load it.

gcc/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (prepare_move_operands): Always use an
intermediate register when storing a TLS symbols.

gcc/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* gcc/testsuite/gcc.target/arc/tls-2.c: New test.
* gcc/testsuite/gcc.target/arc/tls-3.c: Likewise.

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