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 43A22385841D for ; Thu, 13 Apr 2023 11:00:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 43A22385841D 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 33DAvwOB024693; Thu, 13 Apr 2023 05:57:58 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 33DAvuOL024689; Thu, 13 Apr 2023 05:57:56 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 13 Apr 2023 05:57:56 -0500 From: Segher Boessenkool To: Jeff Law Cc: Jakub Jelinek , Eric Botcazou , gcc-patches@gcc.gnu.org, Richard Biener , Richard Sandiford Subject: Re: [PATCH] combine, v4: Fix AND handling for WORD_REGISTER_OPERATIONS targets [PR109040] Message-ID: <20230413105755.GD19790@gate.crashing.org> References: <2220543.iZASKD2KPV@fomalhaut> <3412470.QJadu78ljV@fomalhaut> <8d3c3861-c291-e762-a2a8-0b520f39a7e3@gmail.com> <965831db-ac9e-cc5e-3459-08b6b70fd577@gmail.com> <0760f780-ba7d-3476-1d9a-7b5f3063d63b@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0760f780-ba7d-3476-1d9a-7b5f3063d63b@gmail.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 Wed, Apr 12, 2023 at 10:05:08PM -0600, Jeff Law wrote: > On 4/12/23 10:58, Jakub Jelinek wrote: > >Seems my cross defaulted to 32-bit compilation, reproduced it with > >additional -mabi=lp64 -march=rv64gv even on the pr108947.c test. > >So, let's include that test in the patch too: > > > >2023-04-12 Jeff Law > > Jakub Jelinek > > > > PR target/108947 > > PR target/109040 > > * combine.cc (simplify_and_const_int_1): Compute nonzero_bits in > > word_mode rather than mode if WORD_REGISTER_OPERATIONS and mode is > > smaller than word_mode. > > * simplify-rtx.cc (simplify_context::simplify_binary_operation_1) > > : Likewise. > > > > * gcc.dg/pr108947.c: New test. > > * gcc.c-torture/execute/pr109040.c: New test. > Bootstrap of the v3 patch has completed. Regression testing is still > spinning. It should be done and waiting for me when I wake up in the > morning. It's still okay for trunk (of course) if the bootstrap doesn't fail (of course). Thanks guys! Segher