https://gcc.gnu.org/g:ea14d0a16f44967470cd2cc87d76eaa635191e79

commit ea14d0a16f44967470cd2cc87d76eaa635191e79
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Thu Feb 6 05:07:44 2025 -0300

    [testsuite] [sparc] skip tls tests if emulated
    
    A number of tls tests expect TLS-specific relocations, that are not
    present when tls is emulated, as on e.g. leon3-elf.  Skip the tests
    when tls is emulated.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.target/sparc/tls-ld-int16.c: Skip when tls is emulated.
            * gcc.target/sparc/tls-ld-int32.c: Likewise.
            * gcc.target/sparc/tls-ld-int8.c: Likewise.
            * gcc.target/sparc/tls-ld-uint16.c: Likewise.
            * gcc.target/sparc/tls-ld-uint32.c: Likewise.
            * gcc.target/sparc/tls-ld-uint8.c: Likewise.

Diff:
---
 gcc/testsuite/gcc.target/sparc/tls-ld-int16.c  | 1 +
 gcc/testsuite/gcc.target/sparc/tls-ld-int32.c  | 1 +
 gcc/testsuite/gcc.target/sparc/tls-ld-int8.c   | 1 +
 gcc/testsuite/gcc.target/sparc/tls-ld-uint16.c | 1 +
 gcc/testsuite/gcc.target/sparc/tls-ld-uint32.c | 1 +
 gcc/testsuite/gcc.target/sparc/tls-ld-uint8.c  | 1 +
 6 files changed, 6 insertions(+)

diff --git a/gcc/testsuite/gcc.target/sparc/tls-ld-int16.c 
b/gcc/testsuite/gcc.target/sparc/tls-ld-int16.c
index d3d28086156e..de4ce4034c6d 100644
--- a/gcc/testsuite/gcc.target/sparc/tls-ld-int16.c
+++ b/gcc/testsuite/gcc.target/sparc/tls-ld-int16.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" }
 /* { dg-add-options tls } */
+/* { dg-skip-if "native tls expected" { tls_emulated } } */
 
 #include <stdint.h>
 
diff --git a/gcc/testsuite/gcc.target/sparc/tls-ld-int32.c 
b/gcc/testsuite/gcc.target/sparc/tls-ld-int32.c
index cf18147ef727..5604c24151ac 100644
--- a/gcc/testsuite/gcc.target/sparc/tls-ld-int32.c
+++ b/gcc/testsuite/gcc.target/sparc/tls-ld-int32.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" }
 /* { dg-add-options tls } */
+/* { dg-skip-if "native tls expected" { tls_emulated } } */
 
 #include <stdint.h>
 
diff --git a/gcc/testsuite/gcc.target/sparc/tls-ld-int8.c 
b/gcc/testsuite/gcc.target/sparc/tls-ld-int8.c
index a07cffc37f8c..17eb32ea2a10 100644
--- a/gcc/testsuite/gcc.target/sparc/tls-ld-int8.c
+++ b/gcc/testsuite/gcc.target/sparc/tls-ld-int8.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" }
 /* { dg-add-options tls } */
+/* { dg-skip-if "native tls expected" { tls_emulated } } */
 
 #include <stdint.h>
 
diff --git a/gcc/testsuite/gcc.target/sparc/tls-ld-uint16.c 
b/gcc/testsuite/gcc.target/sparc/tls-ld-uint16.c
index 41ee687b28c5..81990a7bf3ca 100644
--- a/gcc/testsuite/gcc.target/sparc/tls-ld-uint16.c
+++ b/gcc/testsuite/gcc.target/sparc/tls-ld-uint16.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" }
 /* { dg-add-options tls } */
+/* { dg-skip-if "native tls expected" { tls_emulated } } */
 
 #include <stdint.h>
 
diff --git a/gcc/testsuite/gcc.target/sparc/tls-ld-uint32.c 
b/gcc/testsuite/gcc.target/sparc/tls-ld-uint32.c
index 9c7915372b9e..60524ba87cf6 100644
--- a/gcc/testsuite/gcc.target/sparc/tls-ld-uint32.c
+++ b/gcc/testsuite/gcc.target/sparc/tls-ld-uint32.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" }
 /* { dg-add-options tls } */
+/* { dg-skip-if "native tls expected" { tls_emulated } } */
 
 #include <stdint.h>
 
diff --git a/gcc/testsuite/gcc.target/sparc/tls-ld-uint8.c 
b/gcc/testsuite/gcc.target/sparc/tls-ld-uint8.c
index 0dcff66eb15e..7a7492197f95 100644
--- a/gcc/testsuite/gcc.target/sparc/tls-ld-uint8.c
+++ b/gcc/testsuite/gcc.target/sparc/tls-ld-uint8.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" }
 /* { dg-add-options tls } */
+/* { dg-skip-if "native tls expected" { tls_emulated } } */
 
 #include <stdint.h>

Reply via email to