https://gcc.gnu.org/g:56a9808929f692f087a304a38d484cbdc2947573

commit r17-4198-g56a9808929f692f087a304a38d484cbdc2947573
Author: Iain Sandoe <[email protected]>
Date:   Sat Sep 5 11:35:04 2026 +0100

    testsuite, torture-compile: Add target requires avx for tests that use it.
    
    These tests require assembler support for the ISAs implied or set 
explicitly.
    Add dg-requires for avx512.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.c-torture/compile/pr106433.c: Require avx512 support from the
            assembler.
            * gcc.c-torture/compile/pr113322-1.c: Likewise.
            * gcc.c-torture/compile/pr116348.c: Likewise.
            * gcc.c-torture/compile/pr97576.c: Likewise.
    
    Signed-off-by: Iain Sandoe <[email protected]>

Diff:
---
 gcc/testsuite/gcc.c-torture/compile/pr106433.c   | 1 +
 gcc/testsuite/gcc.c-torture/compile/pr113322-1.c | 5 +++--
 gcc/testsuite/gcc.c-torture/compile/pr116348.c   | 3 ++-
 gcc/testsuite/gcc.c-torture/compile/pr97576.c    | 1 +
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.c-torture/compile/pr106433.c 
b/gcc/testsuite/gcc.c-torture/compile/pr106433.c
index e02ad5ffe159..9f026b79931a 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr106433.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr106433.c
@@ -1,4 +1,5 @@
 /* PR tree-optimization/106433 */
+/* { dg-require-effective-target avx512f { target x86 } } */
 
 int m, *p;
 
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr113322-1.c 
b/gcc/testsuite/gcc.c-torture/compile/pr113322-1.c
index efed9603dfd7..fbdc6edbb28f 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr113322-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr113322-1.c
@@ -1,8 +1,9 @@
-/* { dg-additional-options "-march=sapphirerapids" { target x86_64*-*-* 
i?86-*-* } } */
+/* { dg-additional-options "-march=sapphirerapids" { target x86 } } */
+/* { dg-require-effective-target avx512f { target x86 } } */
 /* PR middle-end/113322 */
 
 float a[16];
-void 
+void
 foo ()
 {
 int i;
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr116348.c 
b/gcc/testsuite/gcc.c-torture/compile/pr116348.c
index 97ab0181ab8b..b9c0805fbc3b 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr116348.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr116348.c
@@ -1,4 +1,5 @@
-/* { dg-additional-options "-march=znver4" { target x86_64-*-* i?86-*-* } } */
+/* { dg-additional-options "-march=znver4" { target x86 } } */
+/* { dg-require-effective-target avx512vbmi2 { target x86 } } */
 
 int *a;
 int b;
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr97576.c 
b/gcc/testsuite/gcc.c-torture/compile/pr97576.c
index 4bcadabcca07..3c587b4cb364 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr97576.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr97576.c
@@ -1,5 +1,6 @@
 /* { dg-additional-options "-std=gnu17" } */
 /* { dg-require-effective-target non_strict_prototype } */
+/* { dg-require-effective-target avx512dq { target x86 } } */
 
 void
 pc (void);

Reply via email to