[ARC] Cleanup TLS implementation and add a number of tests.
authorClaudiu Zissulescu <claziss@synopsys.com>
Wed, 31 Oct 2018 11:27:19 +0000 (12:27 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Wed, 31 Oct 2018 11:27:19 +0000 (12:27 +0100)
commit8efa18d693207598020f6d7aabb680397ff3815c
treed14cf258e4d02ce01bf66209ee32c96aa0256a6a
parent088371bfc578852981949bdd0e1643fcb73c7279
[ARC] Cleanup TLS implementation and add a number of tests.

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

* config/arc/arc.c (arc_get_tp): Remove function.
(arc_emit_call_tls_get_addr): Likewise.
(arc_call_tls_get_addr): New function.
(arc_legitimize_tls_address): Make use of arc_call_tls_get_addr.
* config/arc/arc.md (tls_load_tp_soft): Remove.
(tls_gd_get_addr): Likewise.

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

* gcc.target/arc/tls-gd.c: New file.
* gcc.target/arc/tls-ie.c: Likewise.
* gcc.target/arc/tls-ld.c: Likewise.
* gcc.target/arc/tls-le.c: Likewise.
* gcc.target/arc/tls-1.c: Update test.

From-SVN: r265674
gcc/ChangeLog
gcc/config/arc/arc.c
gcc/config/arc/arc.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/tls-1.c
gcc/testsuite/gcc.target/arc/tls-gd.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arc/tls-ie.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arc/tls-ld.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arc/tls-le.c [new file with mode: 0644]