]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Require atomic operations for hardbool-ai.c
authorDimitar Dimitrov <dimitar@dinux.eu>
Sat, 9 Aug 2025 05:26:13 +0000 (08:26 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Sat, 9 Aug 2025 10:25:08 +0000 (13:25 +0300)
The test uses _Atomic int type, so add a filter to ensure the target
supports it.

This fixes a spurious test failure on pru-unknown-elf, which lacks
atomic ops.  The test still passes on x86_64-linux-gnu.

gcc/testsuite/ChangeLog:

* gcc.dg/torture/hardbool-ai.c: Require target that supports
atomic operations on int types.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/torture/hardbool-ai.c

index 97569a6de6daca9cca0b08cd6a3b9dbd7bceec1b..af4e0e14b58a16d650f7ada3ed6e9ee4a7080376 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-require-effective-target sync_int_long } */
 
 #define basetype _Atomic int