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 66554393D024 for ; Wed, 28 Apr 2021 15:57:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 66554393D024 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 42586ED1; Wed, 28 Apr 2021 08:57:24 -0700 (PDT) Received: from localhost (e121540-lin.manchester.arm.com [10.32.98.126]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B28733F73B; Wed, 28 Apr 2021 08:57:23 -0700 (PDT) From: Richard Sandiford To: Jonathan Wright via Gcc-patches Mail-Followup-To: Jonathan Wright via Gcc-patches , Jonathan Wright , richard.sandiford@arm.com Subject: Re: [PATCH 16/20] aarch64: Relax aarch64_hn2 RTL pattern References: Date: Wed, 28 Apr 2021 16:57:22 +0100 In-Reply-To: (Jonathan Wright via Gcc-patches's message of "Wed, 28 Apr 2021 14:53:34 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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, 28 Apr 2021 15:57:27 -0000 Jonathan Wright via Gcc-patches writes: > Hi, > > As subject, this patch implements the v[r]addhn2 and v[r]subhn2 Neon > intrinsic RTL patterns using a vec_concat of a register_operand and an > ADDSUBHN unspec - instead of just an ADDSUBHN2 unspec. This more > relaxed pattern allows for more aggressive combinations and ultimately > better code generation. With this and patch 17, it would be good to have some tests that show (and defend) the improvement. Thanks, Richard > > Regression tested and bootstrapped on aarch64-none-linux-gnu and > aarch64_be-none-elf - no issues. > > Ok for master? > > Thanks, > Jonathan > > --- > > gcc/ChangeLog: > > 2021-03-03 =C2=A0Jonathan Wright =C2=A0 > > * config/aarch64/aarch64-simd.md (aarch64_hn2): > Implement as an expand emitting a big/little endian > instruction pattern. > (aarch64_hn2_insn_le): Define. > (aarch64_hn2_insn_be): Define.