From patchwork Wed Oct 2 06:44:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 1991815 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=FHVQTXiN; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=N1Ha4BFG; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=FHVQTXiN; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=N1Ha4BFG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XJQKq6FVHz1xsc for ; Wed, 2 Oct 2024 16:45:19 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ABBBF38650E3 for ; Wed, 2 Oct 2024 06:45:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id C8F7E385F012 for ; Wed, 2 Oct 2024 06:44:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C8F7E385F012 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C8F7E385F012 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727851449; cv=none; b=Bx4EuVuMO+qFHCwYetgelXXRqNdfSxO2fLG8bsbuT7+5CnFnJABdUUUAuZ53om+fSDyVKZtUmH4WZsUx/oGzPoeouBbgzIyNTy8TyU+1+M1TbFo9z813/S5Mc0RQ6SDV566W8EzHg7KHYyzpYcjmf5dvlORo3ST8zSsn9UcH1ho= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727851449; c=relaxed/simple; bh=VgTLO7AcYZFJQ/Ffda2dfseApFNexAtweTzhUiqAHiw=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version; b=JSwUW73988imuVuH3pOyvXrFhAmLWmd2KsE+XWhjQndKFv05VfYnA/94Au1+FSwVBmBsmPkz9qAzb+Rv6/ChlJ2+MwtF0ovdYb8CKlgmFRg+J5woIrYgLNo9wWAyB9FAnfcnxYz8/rU3L6Id5HrsMcsZgi7pv7GVmTvAScjXOK0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from murzim.nue2.suse.org (unknown [10.168.4.243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id AB69121A8F for ; Wed, 2 Oct 2024 06:44:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1727851446; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=EgL8xNvTRREBGQuxj30PH2ozS/WSmOdU02hpE22PCCE=; b=FHVQTXiN+cp8Jbm2VzHeC4IipljY0JqtQPJkDKnZgIyyuqyKGAyNn252OSs1UGLaWXS8zO r9pQmQu2ZyJnurHMGZq0zUcJ+vGno76ZOCH2l/rN4RGimIaYeYptKeFEOPGqWi0v/Q4dxG p7oC3MTlgFDVK0YHawLiwB6sjWsWPAQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1727851446; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=EgL8xNvTRREBGQuxj30PH2ozS/WSmOdU02hpE22PCCE=; b=N1Ha4BFG7W7psXilGQvCCtvZTfhrUmRPM7YwFK1mbUFYGpRykWTtzpg3kNfRyFsDzEiSZK x7tz0GIKSMqO04CA== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1727851446; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=EgL8xNvTRREBGQuxj30PH2ozS/WSmOdU02hpE22PCCE=; b=FHVQTXiN+cp8Jbm2VzHeC4IipljY0JqtQPJkDKnZgIyyuqyKGAyNn252OSs1UGLaWXS8zO r9pQmQu2ZyJnurHMGZq0zUcJ+vGno76ZOCH2l/rN4RGimIaYeYptKeFEOPGqWi0v/Q4dxG p7oC3MTlgFDVK0YHawLiwB6sjWsWPAQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1727851446; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=EgL8xNvTRREBGQuxj30PH2ozS/WSmOdU02hpE22PCCE=; b=N1Ha4BFG7W7psXilGQvCCtvZTfhrUmRPM7YwFK1mbUFYGpRykWTtzpg3kNfRyFsDzEiSZK x7tz0GIKSMqO04CA== Date: Wed, 2 Oct 2024 08:44:06 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH 2/2] testsuite/116654 - adjust gcc.target/powerpc/p9-vec-length-full-8.c MIME-Version: 1.0 X-Spam-Level: X-Spamd-Result: default: False [0.15 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MISSING_MID(2.50)[]; NEURAL_SPAM_LONG(0.84)[0.239]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_SHORT(-0.09)[-0.427]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ZERO(0.00)[0]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[] X-Spam-Score: 0.15 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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Message-Id: <20241002064517.ABBBF38650E3@sourceware.org> gcc.target/powerpc/p9-vec-length-full-8.c was expecting all loops to use -with-len fully masked vectorization to avoid epilogues because the loops needed peeling for gaps. With SLP we have improved things here and the loops using V2D[IF]mode no longer need peeling for gaps since the target can compose those vectors from two scalars and in turn we generate better code and not need an epilogue either (the iteration count divides by the VF). Pushed. PR testsuite/116654 * gcc.target/powerpc/p9-vec-length-full-8.c: Adjust. --- gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-8.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-8.c b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-8.c index 53fa8ebc3ff..8b303841aea 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-8.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-8.c @@ -9,9 +9,10 @@ /* { dg-require-effective-target powerpc_vsx } */ /* Test for fully with length, the loop body uses vector access with length, - there should not be any epilogues. */ + there should not be any epilogues. Note for [u]int64_t and double we + can avoid peeling for gaps and do not require with-len. */ #include "p9-vec-length-8.h" -/* { dg-final { scan-assembler-times {\mlxvl\M} 30 } } */ -/* { dg-final { scan-assembler-times {\mstxvl\M} 10 } } */ +/* { dg-final { scan-assembler-times {\mlxvl\M} 21 } } */ +/* { dg-final { scan-assembler-times {\mstxvl\M} 7 } } */