public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: H.J. Lu <hjl@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-7743] x86: Disable AVX on pr86722.c and pr90356.c
Date: Mon, 21 Mar 2022 21:57:59 +0000 (GMT)	[thread overview]
Message-ID: <20220321215759.3ED53385E837@sourceware.org> (raw)

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

commit r12-7743-gbec69ac548b0f37b41d07082d6ee52b52d356536
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Mar 21 13:57:31 2022 -0700

    x86: Disable AVX on pr86722.c and pr90356.c
    
    SSE/SSE2 are enabled explicitly on pr86722.c and pr90356.c.  Disable AVX
    to avoid AVX with -march=native.
    
            PR target/86722
            PR tree-optimization/90356
            * gcc.target/i386/pr86722.c: Add -mno-avx.
            * gcc.target/i386/pr90356.c: Likewise.

Diff:
---
 gcc/testsuite/gcc.target/i386/pr86722.c | 3 +--
 gcc/testsuite/gcc.target/i386/pr90356.c | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr86722.c b/gcc/testsuite/gcc.target/i386/pr86722.c
index 1092c4d8035..4de2ca1a6c0 100644
--- a/gcc/testsuite/gcc.target/i386/pr86722.c
+++ b/gcc/testsuite/gcc.target/i386/pr86722.c
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
-/* { dg-options "-O2 -msse" } */
+/* { dg-options "-O2 -mno-avx -msse" } */
 
 void f(double*d,double*e){
   for(;d<e;++d)
@@ -8,4 +8,3 @@ void f(double*d,double*e){
 
 /* { dg-final { scan-assembler-not "andnpd" } } */
 /* { dg-final { scan-assembler-not "orpd" } } */
-
diff --git a/gcc/testsuite/gcc.target/i386/pr90356.c b/gcc/testsuite/gcc.target/i386/pr90356.c
index 6f852b3f671..79e0d64b0cb 100644
--- a/gcc/testsuite/gcc.target/i386/pr90356.c
+++ b/gcc/testsuite/gcc.target/i386/pr90356.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -msse2 -mfpmath=sse" } */
+/* { dg-options "-O2 -mno-avx -msse2 -mfpmath=sse" } */
 float doit(float k){
     float c[2]={0.0};
     c[1]+=k;


                 reply	other threads:[~2022-03-21 21:57 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=20220321215759.3ED53385E837@sourceware.org \
    --to=hjl@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).