public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [r12-7693 Regression] FAIL: gcc.target/i386/pr90356.c scan-assembler pxor on Linux/x86_64
@ 2022-03-18  4:46 sunil.k.pandey
  2022-03-21 21:03 ` [PATCH] x86: Disable AVX on pr86722.c and pr90356.c H.J. Lu
  0 siblings, 1 reply; 2+ messages in thread
From: sunil.k.pandey @ 2022-03-18  4:46 UTC (permalink / raw)
  To: gcc-patches, gcc-regression, roger

On Linux/x86_64,

c482c28ba4c549006deb70dead90fe8ab34dcbcf is the first bad commit
commit c482c28ba4c549006deb70dead90fe8ab34dcbcf
Author: Roger Sayle <roger@nextmovesoftware.com>
Date:   Thu Mar 17 21:56:32 2022 +0000

    PR 90356: Use xor to load const_double 0.0 on SSE (always)

caused

FAIL: gcc.target/i386/pr86722.c scan-assembler-not orpd
FAIL: gcc.target/i386/pr90356.c scan-assembler pxor

with GCC configured with

../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-7693/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64-linux --disable-bootstrap

To reproduce:

$ cd {build_dir}/gcc && make check RUNTESTFLAGS="i386.exp=gcc.target/i386/pr86722.c --target_board='unix{-m64\ -march=cascadelake}'"
$ cd {build_dir}/gcc && make check RUNTESTFLAGS="i386.exp=gcc.target/i386/pr90356.c --target_board='unix{-m32\ -march=cascadelake}'"
$ cd {build_dir}/gcc && make check RUNTESTFLAGS="i386.exp=gcc.target/i386/pr90356.c --target_board='unix{-m64\ -march=cascadelake}'"

(Please do not reply to this email, for question about this report, contact me at skpgkp2 at gmail dot com)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] x86: Disable AVX on pr86722.c and pr90356.c
  2022-03-18  4:46 [r12-7693 Regression] FAIL: gcc.target/i386/pr90356.c scan-assembler pxor on Linux/x86_64 sunil.k.pandey
@ 2022-03-21 21:03 ` H.J. Lu
  0 siblings, 0 replies; 2+ messages in thread
From: H.J. Lu @ 2022-03-21 21:03 UTC (permalink / raw)
  To: Uros Bizjak; +Cc: GCC Patches, Roger Sayle

[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]

On Thu, Mar 17, 2022 at 9:47 PM sunil.k.pandey via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> On Linux/x86_64,
>
> c482c28ba4c549006deb70dead90fe8ab34dcbcf is the first bad commit
> commit c482c28ba4c549006deb70dead90fe8ab34dcbcf
> Author: Roger Sayle <roger@nextmovesoftware.com>
> Date:   Thu Mar 17 21:56:32 2022 +0000
>
>     PR 90356: Use xor to load const_double 0.0 on SSE (always)
>
> caused
>
> FAIL: gcc.target/i386/pr86722.c scan-assembler-not orpd
> FAIL: gcc.target/i386/pr90356.c scan-assembler pxor
>
> with GCC configured with
>
> ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-7693/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64-linux --disable-bootstrap
>
> To reproduce:
>
> $ cd {build_dir}/gcc && make check RUNTESTFLAGS="i386.exp=gcc.target/i386/pr86722.c --target_board='unix{-m64\ -march=cascadelake}'"
> $ cd {build_dir}/gcc && make check RUNTESTFLAGS="i386.exp=gcc.target/i386/pr90356.c --target_board='unix{-m32\ -march=cascadelake}'"
> $ cd {build_dir}/gcc && make check RUNTESTFLAGS="i386.exp=gcc.target/i386/pr90356.c --target_board='unix{-m64\ -march=cascadelake}'"
>

I am checking in this testcase fix.

-- 
H.J.

[-- Attachment #2: 0001-x86-Disable-AVX-on-pr86722.c-and-pr90356.c.patch --]
[-- Type: text/x-patch, Size: 1600 bytes --]

From 24722f23a9d6ac4fbc3694b92585db61797a843d Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Mon, 21 Mar 2022 13:57:31 -0700
Subject: [PATCH] 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.
---
 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;
-- 
2.35.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-21 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18  4:46 [r12-7693 Regression] FAIL: gcc.target/i386/pr90356.c scan-assembler pxor on Linux/x86_64 sunil.k.pandey
2022-03-21 21:03 ` [PATCH] x86: Disable AVX on pr86722.c and pr90356.c H.J. Lu

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).