]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Implement __builtin_thread_pointer for TLS.
authorchenxiaolong <chenxiaolong@loongson.cn>
Tue, 24 Oct 2023 06:40:14 +0000 (14:40 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Wed, 25 Oct 2023 13:11:16 +0000 (21:11 +0800)
commit1b30ef7cea773e0af527dbf821e0be42b6a264f8
tree59be8a85b7adb9d77291c497c9ed407d1013bf33
parentfb28d5c6b0a47ab704290d0122f978d1e6346551
LoongArch: Implement __builtin_thread_pointer for TLS.

gcc/ChangeLog:

* config/loongarch/loongarch.md (get_thread_pointer<mode>):Adds the
instruction template corresponding to the __builtin_thread_pointer
function.
* doc/extend.texi:Add the __builtin_thread_pointer function support
description to the documentation.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/builtin_thread_pointer.c: New test.
gcc/config/loongarch/loongarch.md
gcc/doc/extend.texi
gcc/testsuite/gcc.target/loongarch/builtin_thread_pointer.c [new file with mode: 0644]