From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 521 invoked by alias); 30 Jun 2010 18:46:40 -0000 Received: (qmail 509 invoked by uid 22791); 30 Jun 2010 18:46:39 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Jun 2010 18:46:34 +0000 Received: (qmail 15810 invoked from network); 30 Jun 2010 18:46:32 -0000 Received: from unknown (HELO ?192.168.0.124?) (jie@127.0.0.2) by mail.codesourcery.com with ESMTPA; 30 Jun 2010 18:46:32 -0000 Message-ID: <4C2B9105.2000905@codesourcery.com> Date: Wed, 30 Jun 2010 19:55:00 -0000 From: Jie Zhang User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100608 Lightning/1.0b2 Thunderbird/3.1 MIME-Version: 1.0 To: Richard Henderson CC: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Provide a hook for target to disable register renaming for some instructions References: <4C2B84B7.2000506@codesourcery.com> <4C2B86EF.6020900@redhat.com> In-Reply-To: <4C2B86EF.6020900@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2010-06/txt/msg03186.txt.bz2 On 07/01/2010 02:03 AM, Richard Henderson wrote: > On 06/30/2010 10:53 AM, Jie Zhang wrote: >> When compiler an application for ARM, the GAS issued a warning: >> >> Warning: register range not in ascending order >> >> for the instruction >> >> push {ip, r3, r4, lr} >> >> Before regrename pass, this instruction looked like >> >> push {r0, r3, r4, lr} > > Doesn't it work just as well to simply remove the register > constraint from the push_multi instruction? Without that > the regrename pass won't get a register class for the > operand and will leave it alone. > Thanks! I never thought about it. It works. I will do a full testing. Jie