From patchwork Fri Nov 1 00:27:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 21305 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 361812B07C for ; Fri, 1 Nov 2013 00:27:10 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id w10sf5326968pde.7 for ; Thu, 31 Oct 2013 17:27:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=UbTwXtcUByF/Q1t08ABb7UL6MlLOT9DyjSOudytfsTs=; b=MTUsfxpYOzXV6Pc65umL99CVM3YRAKSK/2fLUX61cwx3aAyY2KXxUJs1dtYTgobL8I CKtmef69y1Fn71muh2YYatJnn48dzEw8M7PbnXvhTaq4GCcXv8RWaXQiXS5VlcJuSMRC GwJVY2oDl9GZ6Z+VW1yOvl7njdbZGyqsP72Kfz+gT7VpC2Ehb6O0WHnRhSBUxkz+aiem 9TACnEJg0uWyS/Hpu3rY87PB4BFoifN5n24FcaOcbFsUT0MyZziFTtA2wsKFWgmXz+xw VDOEQRWpmV3hL1BYd4OIt1J703FFzrVM0NV1NRrwDf8cnb9tdIsq02TWcZ1+hW7M6wML kZ0Q== X-Gm-Message-State: ALoCoQlsUfSXoxywpC7yDdTQ6ytaSV3m5k7PqDgWxKkdfQsA5HQOIAX/TQU8McLKGdlPYSyTbQGc X-Received: by 10.66.160.36 with SMTP id xh4mr155952pab.11.1383265629324; Thu, 31 Oct 2013 17:27:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.3.231 with SMTP id f7ls1228714qef.61.gmail; Thu, 31 Oct 2013 17:27:09 -0700 (PDT) X-Received: by 10.221.16.200 with SMTP id pz8mr166293vcb.53.1383265629182; Thu, 31 Oct 2013 17:27:09 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id h7si74095vee.147.2013.10.31.17.27.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Oct 2013 17:27:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id ks9so2482699vcb.31 for ; Thu, 31 Oct 2013 17:27:09 -0700 (PDT) X-Received: by 10.52.30.66 with SMTP id q2mr149750vdh.18.1383265629096; Thu, 31 Oct 2013 17:27:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp5280vcz; Thu, 31 Oct 2013 17:27:08 -0700 (PDT) X-Received: by 10.60.144.230 with SMTP id sp6mr328945oeb.29.1383265628627; Thu, 31 Oct 2013 17:27:08 -0700 (PDT) Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) by mx.google.com with ESMTPS id kg5si3401138oeb.102.2013.10.31.17.27.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Oct 2013 17:27:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.219.52 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=209.85.219.52; Received: by mail-oa0-f52.google.com with SMTP id j1so3841457oag.25 for ; Thu, 31 Oct 2013 17:27:08 -0700 (PDT) X-Received: by 10.182.66.164 with SMTP id g4mr320430obt.47.1383265628089; Thu, 31 Oct 2013 17:27:08 -0700 (PDT) Received: from localhost.localdomain (sccc-66-78-236-243.smartcity.com. [66.78.236.243]) by mx.google.com with ESMTPSA id hl3sm9867236obb.0.2013.10.31.17.27.07 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 31 Oct 2013 17:27:07 -0700 (PDT) Message-ID: <5272F55A.5020408@linaro.org> Date: Thu, 31 Oct 2013 17:27:06 -0700 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: binutils@sourceware.org CC: Patch Tracking Subject: [PATCH] config/tc-aarch64.c: Avoid trying to parse a vector mov as immediate. X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Parsing a vector mov instruction currently leads to a phantom undefined symbol being added to the symbol table. e.g.: .text mov x0, v0.D[0] Produces an undefined symbol called "v0.D". 2013-10-31 Will Newton * config/tc-aarch64.c (parse_operands): Avoid trying to parse a vector register as an immediate. --- gas/config/tc-aarch64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 14ffdad..02fe4de 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -4810,7 +4810,8 @@ parse_operands (char *str, const aarch64_opcode *opcode) case AARCH64_OPND_IMM_MOV: { char *saved = str; - if (reg_name_p (str, REG_TYPE_R_Z_SP)) + if (reg_name_p (str, REG_TYPE_R_Z_SP) || + reg_name_p (str, REG_TYPE_VN)) goto failure; str = saved; po_misc_or_fail (my_get_expression (&inst.reloc.exp, &str,