diff mbox series

[COMMITTED] testsuite: i386: Require avx512vpopcntdq in two tests

Message ID ydd7dps4gc2.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series [COMMITTED] testsuite: i386: Require avx512vpopcntdq in two tests | expand

Commit Message

Rainer Orth Dec. 8, 2020, 12:45 p.m. UTC
Two recent AVX512 tests FAIL on Solaris/x86 with /bin/as:

FAIL: gcc.target/i386/avx512vpopcntdq-pr97770-2.c (test for excess errors)

Excess errors:
Assembler: avx512vpopcntdq-pr97770-2.c
        "/var/tmp//ccM4Gt1a.s", line 171 : Illegal mnemonic
        Near line: "    vpopcntd        (%eax), %zmm0"
        "/var/tmp//ccM4Gt1a.s", line 171 : Syntax error
        Near line: "    vpopcntd        (%eax), %zmm0"

FAIL: gcc.target/i386/avx512vpopcntdqvl-pr97770-1.c (test for excess errors)

similarly.

Fixed as follows.

Tested on i386-pc-solaris2.11 with as and gas and x86_64-pc-linux-gnu.
Installed on master.

	Rainer
diff mbox series

Patch

# HG changeset patch
# Parent  bb5cf0aa086befe7ea1de833e2dcb5f53d638eb8
testsuite: i386: Require avx512vpopcntdq in two tests

diff --git a/gcc/testsuite/gcc.target/i386/avx512vpopcntdq-pr97770-2.c b/gcc/testsuite/gcc.target/i386/avx512vpopcntdq-pr97770-2.c
--- a/gcc/testsuite/gcc.target/i386/avx512vpopcntdq-pr97770-2.c
+++ b/gcc/testsuite/gcc.target/i386/avx512vpopcntdq-pr97770-2.c
@@ -1,5 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-O2 -mavx512vpopcntdq" } */
+/* { dg-require-effective-target avx512vpopcntdq } */
 
 #define AVX512VPOPCNTDQ
 
diff --git a/gcc/testsuite/gcc.target/i386/avx512vpopcntdqvl-pr97770-1.c b/gcc/testsuite/gcc.target/i386/avx512vpopcntdqvl-pr97770-1.c
--- a/gcc/testsuite/gcc.target/i386/avx512vpopcntdqvl-pr97770-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512vpopcntdqvl-pr97770-1.c
@@ -1,5 +1,7 @@ 
 /* { dg-do run } */
 /* { dg-options "-O3 -mavx512vpopcntdq -mavx512vl" } */
+/* { dg-require-effective-target avx512vpopcntdq } */
+/* { dg-require-effective-target avx512vl } */
 
 #define AVX512VL
 #define AVX512F_LEN 256