Here's the adjusted patch:
Rather than skipping the gcc.target/i386/shift-gf2p8affine-2.c test on
Solaris with as, it should require the necessary ISA extensions instead.
Tested on i386-pc-solaris2.11 (as and gas), x86_64-apple-darwin17.7.0,
and x86_64-pc-linux-gnu.
Ok for trunk?
I won't assume this is obvious any longer ;-)
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2025-12-17 Rainer Orth <[email protected]>
gcc/testsuite:
* gcc.target/i386/shift-gf2p8affine-2.c: Require gfni, avx512vl,
avx512bw, avx512f support instead of skipping with Solaris as.
# HG changeset patch
# Parent 04899d2cd4bba2c3aeb20a3ad389e15ca54ca226
testsuite: i386: Require ISA extensions in gcc.target/i386/shift-gf2p8affine-2.c
diff --git a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c
--- a/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c
+++ b/gcc/testsuite/gcc.target/i386/shift-gf2p8affine-2.c
@@ -1,6 +1,9 @@
/* { dg-do run } */
/* { dg-options "-mgfni -mavx512vl -mavx512bw -mavx512f -O3 -Wno-shift-count-negative -march=x86-64 -mtune=generic" } */
-/* { dg-skip-if "Assembler support missing" { *-*-solaris2.* && { ! gas } } } */
+/* { dg-require-effective-target gfni } */
+/* { dg-require-effective-target avx512vl } */
+/* { dg-require-effective-target avx512bw } */
+/* { dg-require-effective-target avx512f } */
#include <string.h>