public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Rainer Orth <ro@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-4713] testsuite: i386: Fix gcc.target/i386/avx512f-pr96891-3.c on Solaris [PR102834]
Date: Tue, 26 Oct 2021 12:35:36 +0000 (GMT)	[thread overview]
Message-ID: <20211026123536.CC5C33858C27@sourceware.org> (raw)

https://gcc.gnu.org/g:a1516b50f291e132d76e3dc79ea91148f8713deb

commit r12-4713-ga1516b50f291e132d76e3dc79ea91148f8713deb
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Tue Oct 26 14:30:07 2021 +0200

    testsuite: i386: Fix gcc.target/i386/avx512f-pr96891-3.c on Solaris [PR102834]
    
    gcc.target/i386/avx512f-pr96891-3.c currently FAILs on 32-bit Solaris/x86:
    
    FAIL: gcc.target/i386/avx512f-pr96891-3.c scan-assembler-times
    (?n)vpcmp[bwdq][ \\\\t]*\\\\\$7 4
    
    There are only 3 instances of the expected pattern because Solaris/x86
    defaults to -mno-stv.  Fixed by compiling with -mstv and
    -mno-stackrealign.  Tested on i386-pc-solaris2.11 and
    x86_64-pc-linux-gnu.
    
    
    2021-10-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
    
            gcc/testsuite:
            PR testsuite/102834
            * gcc.target/i386/avx512f-pr96891-3.c: Add -mstv -mno-stackrealign
            to dg-options.

Diff:
---
 gcc/testsuite/gcc.target/i386/avx512f-pr96891-3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/avx512f-pr96891-3.c b/gcc/testsuite/gcc.target/i386/avx512f-pr96891-3.c
index 1cf18f2407b..06db7521305 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-pr96891-3.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-pr96891-3.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-mavx512vl -mavx512bw -mavx512dq -O2 -masm=att" } */
+/* { dg-options "-mavx512vl -mavx512bw -mavx512dq -O2 -masm=att -mstv -mno-stackrealign" } */
 /* { dg-final { scan-assembler-not {not[bwlqd]\]} } } */
 /* { dg-final { scan-assembler-times {(?n)vpcmp[bwdq][ \t]*\$5} 4} } */
 /* { dg-final { scan-assembler-times {(?n)vpcmp[bwdq][ \t]*\$6} 4} } */


                 reply	other threads:[~2021-10-26 12:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211026123536.CC5C33858C27@sourceware.org \
    --to=ro@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).