From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id CDAF53858C2D for ; Wed, 18 May 2022 11:59:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CDAF53858C2D Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8429E23A; Wed, 18 May 2022 04:59:38 -0700 (PDT) Received: from localhost (e121540-lin.manchester.arm.com [10.32.98.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B89C3F73D; Wed, 18 May 2022 04:59:37 -0700 (PDT) From: Richard Sandiford To: Prathamesh Kulkarni Mail-Followup-To: Prathamesh Kulkarni , gcc Patches , richard.sandiford@arm.com Cc: gcc Patches Subject: Re: [1/9] AArch64 changes to adjust vec_perm_const hook References: Date: Wed, 18 May 2022 12:59:36 +0100 In-Reply-To: (Prathamesh Kulkarni's message of "Wed, 18 May 2022 12:37:21 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2022 11:59:40 -0000 Prathamesh Kulkarni writes: > Hi, > The attached patch adjusts vec_perm_const hook to accommodate the new parameter. > For now, it bails out if vmode != op_mode, in follow-up patch to > PR96463, I will add dup > as exception. > Bootstrapped+tested on aarch64-linux-gnu. > Does it look OK ? OK, thanks. > Thanks, > Prathamesh > > diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc > index f4d2a800f39..e6a24a0f9e1 100644 > --- a/gcc/config/aarch64/aarch64.cc > +++ b/gcc/config/aarch64/aarch64.cc > @@ -24145,9 +24145,13 @@ aarch64_expand_vec_perm_const_1 (struct expand_vec_perm_d *d) > /* Implement TARGET_VECTORIZE_VEC_PERM_CONST. */ > > static bool > -aarch64_vectorize_vec_perm_const (machine_mode vmode, rtx target, rtx op0, > - rtx op1, const vec_perm_indices &sel) > +aarch64_vectorize_vec_perm_const (machine_mode vmode, machine_mode op_mode, > + rtx target, rtx op0, rtx op1, > + const vec_perm_indices &sel) > { > + if (vmode != op_mode) > + return false; > + > struct expand_vec_perm_d d; > > /* Check whether the mask can be applied to a single vector. */