From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18331 invoked by alias); 11 Nov 2015 12:09:23 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 18314 invoked by uid 89); 11 Nov 2015 12:09:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 11 Nov 2015 12:09:20 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9F0E649; Wed, 11 Nov 2015 04:09:06 -0800 (PST) Received: from [10.2.206.22] (e104437-lin.cambridge.arm.com [10.2.206.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 96C5A3F2E5; Wed, 11 Nov 2015 04:09:18 -0800 (PST) Subject: Re: [PATCH] PR67305, tighten neon_vector_mem_operand on eliminable registers To: GCC Patches References: <5639D3A8.5040606@foss.arm.com> Cc: Ramana Radhakrishnan , Kyrill Tkachov From: Jiong Wang Message-ID: <56432FED.7030406@foss.arm.com> Date: Wed, 11 Nov 2015 12:09:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5639D3A8.5040606@foss.arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01348.txt.bz2 On 04/11/15 09:45, Jiong Wang wrote: > As discussed at the bugzilla > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67305 > > neon_vector_mem_operand is broken. As the comments says > "/* Reject eliminable registers. */", the code block at the head > of this function which checks eliminable registers is designed to do > early reject only, there shouldn't be any early accept. > > If this code hunk doesn't reject the incoming rtx, then the rtx pattern > should still go through all default checks below. All other similar > functions, thumb1_legitimate_address_p, arm_coproc_mem_operand, > neon_struct_mem_operand etc are exactly follow this check flow. > > So as Jim Wilson commented on the bugzilla, instead of "return !strict", > we need to only do the check if strict be true, and only does rejection > which means return FALSE, for all other cases, we need to go through > those normal checks below. > > neon_vector_mem_operand is only used by several misalign pattern, I > guess that's why this bug is not exposed for long time. > > boostrap & regression OK on armv8 aarch32, ok for trunk? > > 2015-11-04 Jiong Wang > Jim Wilson > > gcc/ > PR target/67305 > * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict > be true and eliminable registers mentioned. > Ping ~