The gcc.target/i386/shift-gf2p8affine-2.c test FAILs on Solaris with the
native assembler:

FAIL: gcc.target/i386/shift-gf2p8affine-2.c (test for excess errors)
UNRESOLVED: gcc.target/i386/shift-gf2p8affine-2.c compilation failed to produce 
executable

Excess errors:
Assembler: shift-gf2p8affine-2.c
        "/var/tmp//ccZMQ1Ad.s", line 30 : Illegal mnemonic
        Near line: "    vgf2p8affineqb  $0, %zmm1, %zmm0, %zmm0"
        "/var/tmp//ccZMQ1Ad.s", line 30 : Syntax error

Thus this patch only runs the test when gas is in use.

Tested on i386-pc-solaris2.11 (as and gas) and x86_64-pc-linux-gnu.

Committed to trunk.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2025-12-15  Rainer Orth  <[email protected]>

        gcc/testsuite:
        * gcc.target/i386/shift-gf2p8affine-2.c: Skip on Solaris
        without gas.

# HG changeset patch
# Parent  d90406bc42748ff412dbcda5a8fb7686d6a937f1
testsuite: i386: Require gas 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,5 +1,6 @@
 /* { 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 } } } */
 
 #include <string.h>
 

Reply via email to