From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by sourceware.org (Postfix) with ESMTP id B39E53858D37 for ; Mon, 3 Apr 2023 11:23:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B39E53858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 333BMWAP005777; Mon, 3 Apr 2023 06:22:32 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 333BMWhd005775; Mon, 3 Apr 2023 06:22:32 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 3 Apr 2023 06:22:31 -0500 From: Segher Boessenkool To: "Kewen.Lin" Cc: GCC Patches , David Edelsohn , Peter Bergner Subject: Re: [PATCH v3] rs6000: Fix vector parity support [PR108699] Message-ID: <20230403112231.GY25951@gate.crashing.org> References: <65e0c779-7764-bd67-649f-5c225c42949c@linux.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65e0c779-7764-bd67-649f-5c225c42949c@linux.ibm.com> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, Mar 20, 2023 at 02:31:31PM +0800, Kewen.Lin wrote: > The failures on the original failed case builtin-bitops-1.c > and the associated test case pr108699.c here show that the > current support of parity vector mode is wrong on Power. > The hardware insns vprtyb[wdq] which operate on the least > significant bit of each byte per element, they doesn't match > what RTL opcode parity needs, but the current implementation > expands it with them wrongly. > > This patch is to fix the handling with one more insn vpopcntb. > > Comparing to v2 [1]: > - Use rs6000_vprtyb2 rather than parityb2, and > adjust several places with it accordingly. > > Bootstrapped and regtested on powerpc64-linux-gnu P{8,9} > and powerpc64le-linux-gnu P10. > > Is it ok for trunk? Looks good. Thanks! Segher