[gcc/devel/omp/gcc-16] testsuite: Fix up gomp/atomic-builtins-1.c test on !int128 targets

Sandra Loosemore via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:19da79cb5f242f9175300ba966c00922f00fb1eb

commit 19da79cb5f242f9175300ba966c00922f00fb1eb
Author: Jakub Jelinek <[email protected]>
Date:   Thu Jun 25 10:18:28 2026 +0200

    testsuite: Fix up gomp/atomic-builtins-1.c test on !int128 targets
    
    The test uses unconditionally __int128, which doesn't work on most of the
    32-bit targets.
    
    Fixed by adding int128 effective target requirement.
    
    2026-06-25  Jakub Jelinek  <[email protected]>
    
            * c-c++-common/gomp/atomic-builtins-1.c: Add int128 effective target.
    
    (cherry picked from commit 36f6040954af72162f3522f33cedb4489f712711)

Diff:
---
 gcc/testsuite/c-c++-common/gomp/atomic-builtins-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/c-c++-common/gomp/atomic-builtins-1.c b/gcc/testsuite/c-c++-common/gomp/atomic-builtins-1.c
index 75b34319ddb6..d33f28107165 100644
--- a/gcc/testsuite/c-c++-common/gomp/atomic-builtins-1.c
+++ b/gcc/testsuite/c-c++-common/gomp/atomic-builtins-1.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target int128 } } */
 /* { dg-additional-options "-fdump-tree-ompexp" } */
 
 /* Check that an GIMPLE_OMP_ATOMIC statement expands to GOMP_atomic_start/end
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.