From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 8EA993858D1E for ; Tue, 2 May 2023 09:55:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8EA993858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 98DA122390 for ; Tue, 2 May 2023 09:55:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683021317; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=J53yFq62T/L4hqSidm2S7rIakpsOiF8YdEOWXwCIg2U=; b=Iiy66/1WKnCsndUcjufhmW+7jYFd2NA48HieicrLi1TTV2UhlKv8O7nZrMn0BCGBnZ+O4Z qWxosi2ZUgt9WwTRM6UQRSYifD+N8avKYflD2/TlOWqBZVPfrenG0V4c7gBczqNg5fLfUN D9iJV2ULTLlNgta3/25leVWg5I+HFw4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683021317; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=J53yFq62T/L4hqSidm2S7rIakpsOiF8YdEOWXwCIg2U=; b=KnZtw/xW+Z+69m9h9vPFnC7TWxfC1B4cEsQ7sHJQiESeM1JWiCjbF5QNgJSFw6rlA2lU6b zphjzNnHX0mMblCg== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 8AC1D2C141 for ; Tue, 2 May 2023 09:55:17 +0000 (UTC) Date: Tue, 2 May 2023 09:55:17 +0000 (UTC) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] [i386] Fix testcases for emulated scatter User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,MISSING_MID,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Message-ID: <20230502095517.5EfycbLSlKUsCY2M9u-EhGsQ8pJNblu2QuGKFvUxGBM@z> 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. Tested on x86_64-unknown-linux-gnu, pushed. * 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. --- 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 } } } } */ -- 2.35.3