* [PATCH] RISC-V: Add required tls to read thread pointer test
@ 2023-04-27 3:31 pan2.li
2023-04-27 15:30 ` Kito Cheng
0 siblings, 1 reply; 2+ messages in thread
From: pan2.li @ 2023-04-27 3:31 UTC (permalink / raw)
To: gcc-patches; +Cc: juzhe.zhong, kito.cheng, yanzhang.wang, Pan Li
From: Pan Li <pan2.li@intel.com>
The read-thread-pointer test may require the gcc configured
with --enable-tls. If no, there x4 (aka tp) register will not
be presented in the assembly code.
This patch requires the tls for the dg checking. It will perform
the test checking if --enable-tls and mark the test as unsupported
if --disable-tls.
Configured with --enable-tls:
=== gcc Summary ===
of expected passes 16
Configured with --disable-tls:
=== gcc Summary ===
of unsupported tests 8
gcc/testsuite/ChangeLog:
* gcc.target/riscv/read-thread-pointer.c: Add required tls.
Signed-off-by: Pan Li <pan2.li@intel.com>
---
gcc/testsuite/gcc.target/riscv/read-thread-pointer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c
index 401fb421129..5f460b5f746 100644
--- a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c
+++ b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target tls_native } */
void *get_tp()
{
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] RISC-V: Add required tls to read thread pointer test
2023-04-27 3:31 [PATCH] RISC-V: Add required tls to read thread pointer test pan2.li
@ 2023-04-27 15:30 ` Kito Cheng
0 siblings, 0 replies; 2+ messages in thread
From: Kito Cheng @ 2023-04-27 15:30 UTC (permalink / raw)
To: pan2.li; +Cc: gcc-patches, juzhe.zhong, kito.cheng, yanzhang.wang
Thanks, pushed :)
On Thu, Apr 27, 2023 at 11:32 AM Pan Li via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> From: Pan Li <pan2.li@intel.com>
>
> The read-thread-pointer test may require the gcc configured
> with --enable-tls. If no, there x4 (aka tp) register will not
> be presented in the assembly code.
>
> This patch requires the tls for the dg checking. It will perform
> the test checking if --enable-tls and mark the test as unsupported
> if --disable-tls.
>
> Configured with --enable-tls:
> === gcc Summary ===
> of expected passes 16
>
> Configured with --disable-tls:
> === gcc Summary ===
> of unsupported tests 8
>
> gcc/testsuite/ChangeLog:
>
> * gcc.target/riscv/read-thread-pointer.c: Add required tls.
>
> Signed-off-by: Pan Li <pan2.li@intel.com>
> ---
> gcc/testsuite/gcc.target/riscv/read-thread-pointer.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c
> index 401fb421129..5f460b5f746 100644
> --- a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c
> +++ b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c
> @@ -1,4 +1,5 @@
> /* { dg-do compile } */
> +/* { dg-require-effective-target tls_native } */
>
> void *get_tp()
> {
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-27 15:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-27 3:31 [PATCH] RISC-V: Add required tls to read thread pointer test pan2.li
2023-04-27 15:30 ` Kito Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).