From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29297 invoked by alias); 25 May 2011 14:00:33 -0000 Received: (qmail 29289 invoked by uid 22791); 25 May 2011 14:00:31 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_OV X-Spam-Check-By: sourceware.org Received: from mail-pw0-f47.google.com (HELO mail-pw0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 May 2011 14:00:15 +0000 Received: by pwj9 with SMTP id 9so3684653pwj.20 for ; Wed, 25 May 2011 07:00:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.249.39 with SMTP id w39mr1321067wfh.96.1306332014311; Wed, 25 May 2011 07:00:14 -0700 (PDT) Received: by 10.142.108.7 with HTTP; Wed, 25 May 2011 07:00:14 -0700 (PDT) In-Reply-To: <20110524155424.GA7400@intel.com> References: <20110524155424.GA7400@intel.com> Date: Wed, 25 May 2011 14:31:00 -0000 Message-ID: Subject: Re: PATCH: PR target/49142: Invalid 8bit register operand From: Uros Bizjak To: "H.J. Lu" Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2011-05/txt/msg01853.txt.bz2 On Tue, May 24, 2011 at 5:54 PM, H.J. Lu wrote: > Hi, > > We are working on a new optimization, which turns off TARGET_MOVX. > GCC generates: > > movb %ah, %dil > > But %ah can only be used with %[abcd][hl]. =A0This patch adds QIreg_opera= nd > and uses it in *movqi_extv_1_rex64/*movqi_extzv_2_rex64. =A0OK for trunk > if there is no regression? If this is the case, then please change "q_regs_operand" predicate to accept just QI_REG_P registers. Uros.