diff options
author | chenxiaolong <chenxiaolong@loongson.cn> | 2023-10-24 14:40:14 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2023-10-25 21:11:16 +0800 |
commit | 1b30ef7cea773e0af527dbf821e0be42b6a264f8 (patch) | |
tree | 59be8a85b7adb9d77291c497c9ed407d1013bf33 /gcc/doc/extend.texi | |
parent | fb28d5c6b0a47ab704290d0122f978d1e6346551 (diff) | |
download | gcc-1b30ef7cea773e0af527dbf821e0be42b6a264f8.zip gcc-1b30ef7cea773e0af527dbf821e0be42b6a264f8.tar.gz gcc-1b30ef7cea773e0af527dbf821e0be42b6a264f8.tar.bz2 |
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.
Diffstat (limited to 'gcc/doc/extend.texi')
-rw-r--r-- | gcc/doc/extend.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index bf941e6..9923a18 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -16749,6 +16749,11 @@ __float128 __builtin_nanq (void); __float128 __builtin_nansq (void); @end smallexample +Returns the value that is currently set in the @samp{tp} register. +@smallexample + void * __builtin_thread_pointer (void) +@end smallexample + @node MIPS DSP Built-in Functions @subsection MIPS DSP Built-in Functions |