From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id EEA843857704; Tue, 2 May 2023 09:56:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEA843857704 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683021372; bh=EsR/b0I/6wiPOKlxjx5fVzVn2EpJ/oNE1tx7q9Gz39A=; h=From:To:Subject:Date:From; b=te9TAcalkTcfoMxOF2boAfHhDpKyEYu8ogR+d0xjvwh1hxZVMPgBlRtiUuABx1ClH tSsRulF545M0s6j4K1D4dXn/QKNA3OK20fGZGI69WvEyF+P0WV948Sif1S7CtGoRX7 y+KCi0/n4nsUNDka5CavVMYFSbS71PFtzwl19nds= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-390] [i386] Fix testcases for emulated scatter X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/heads/master X-Git-Oldrev: 87de39e4c3686535728f3a347f772e73af4cf262 X-Git-Newrev: 59912ce42eee7f763f8b85f5aa4fd4fcbcffe5b7 Message-Id: <20230502095612.EEA843857704@sourceware.org> Date: Tue, 2 May 2023 09:56:12 +0000 (GMT) List-Id: https://gcc.gnu.org/g:59912ce42eee7f763f8b85f5aa4fd4fcbcffe5b7 commit r14-390-g59912ce42eee7f763f8b85f5aa4fd4fcbcffe5b7 Author: Richard Biener Date: Tue May 2 11:51:51 2023 +0200 [i386] Fix testcases for emulated scatter The following adjusts testcases where the pr88531 fail with -m32 because we do not consider MMX size vectorization there and the pr89618 runs into load/store cost differences with -m32. * gcc.target/i386/pr88531-2a.c: Skip scanning for ia32. * gcc.target/i386/pr88531-2b.c: Likewise. * gcc.target/i386/pr88531-2c.c: Likewise. * gcc.target/i386/pr89618-2.c: Likewise. Disable AVX512. Diff: --- gcc/testsuite/gcc.target/i386/pr88531-2a.c | 3 ++- gcc/testsuite/gcc.target/i386/pr88531-2b.c | 3 ++- gcc/testsuite/gcc.target/i386/pr88531-2c.c | 3 ++- gcc/testsuite/gcc.target/i386/pr89618-2.c | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/pr88531-2a.c b/gcc/testsuite/gcc.target/i386/pr88531-2a.c index 8ab2b1385eb..d35855a25e1 100644 --- a/gcc/testsuite/gcc.target/i386/pr88531-2a.c +++ b/gcc/testsuite/gcc.target/i386/pr88531-2a.c @@ -16,4 +16,5 @@ void loop(float * const __restrict__ dst, dst[i] = 42.0 * src[idx[i]]; } -/* { dg-final { scan-assembler-times "mulps" 1 } } */ +/* For ia32 we do not consider V2SFmode vectorization. */ +/* { dg-final { scan-assembler-times "mulps" 1 { target { ! ia32 } } } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr88531-2b.c b/gcc/testsuite/gcc.target/i386/pr88531-2b.c index cdefff2ce8e..ef005a8b690 100644 --- a/gcc/testsuite/gcc.target/i386/pr88531-2b.c +++ b/gcc/testsuite/gcc.target/i386/pr88531-2b.c @@ -3,4 +3,5 @@ #include "pr88531-2a.c" -/* { dg-final { scan-assembler-times "vmulps" 1 } } */ +/* For ia32 we do not consider V2SFmode vectorization. */ +/* { dg-final { scan-assembler-times "vmulps" 1 { target { ! ia32 } } } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr88531-2c.c b/gcc/testsuite/gcc.target/i386/pr88531-2c.c index 17b24c0dacc..bb0eaa09826 100644 --- a/gcc/testsuite/gcc.target/i386/pr88531-2c.c +++ b/gcc/testsuite/gcc.target/i386/pr88531-2c.c @@ -3,4 +3,5 @@ #include "pr88531-2a.c" -/* { dg-final { scan-assembler-times "vmulps" 1 } } */ +/* For ia32 we do not consider V2SFmode vectorization. */ +/* { dg-final { scan-assembler-times "vmulps" 1 { target { ! ia32 } } } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr89618-2.c b/gcc/testsuite/gcc.target/i386/pr89618-2.c index 0b7dcfd8806..c414053b8ec 100644 --- a/gcc/testsuite/gcc.target/i386/pr89618-2.c +++ b/gcc/testsuite/gcc.target/i386/pr89618-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -mavx2 -fdump-tree-vect-details" } */ +/* { dg-options "-O3 -mavx2 -mno-avx512f -fdump-tree-vect-details" } */ void foo (int n, int *off, double *a) { @@ -20,4 +20,4 @@ void foo (int n, int *off, double *a) /* Make sure the cost model selects SSE vectors rather than AVX to avoid too many scalar ops for the address computes in the loop. */ -/* { dg-final { scan-tree-dump "loop vectorized using 16 byte vectors" "vect" } } */ +/* { dg-final { scan-tree-dump "loop vectorized using 16 byte vectors" "vect" { target { ! ia32 } } } } */