From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23508 invoked by alias); 29 May 2014 16:27:28 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 23498 invoked by uid 89); 29 May 2014 16:27:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 May 2014 16:27:26 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 29 May 2014 17:27:24 +0100 Received: from [10.1.201.52] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 29 May 2014 17:27:21 +0100 Message-ID: <53875FE9.9080103@arm.com> Date: Thu, 29 May 2014 16:27:00 -0000 From: Yufeng Zhang User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Martin Storsjo CC: "binutils@sourceware.org" , Marcus Shawcroft Subject: Re: [PATCH] aarch64: Fix the documentation on :pg_hi21: References: <1401364824-4630-1-git-send-email-martin@martin.st> <538725B9.8060102@arm.com> In-Reply-To: <538725B9.8060102@arm.com> X-MC-Unique: 114052917272413001 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00272.txt.bz2 On 05/29/14 13:19, Yufeng Zhang wrote: > Hi Martin, > > On 05/29/14 13:00, Martin Storsjo wrote: >> The syntax described, including a leading '#', was not supported >> in practice. (For :lo12: it is optional.) > > I believe this is an issue in the parser; '#' should be optional in > either case. > > It looks like gas/config/tc-aarch64.c:parse_adrp () is missing the > skip_past_char (&p, '#') at its beginning; see parse_half () for an examp= le. After spending some time this afternoon reading ARMv8 Architecture=20 Reference Manual (ARMARM) and having a discussion with a colleague, I=20 think I'll have to take back what I just said. Sorry! The A64 assembly language allows the optional # character to introduce=20 constant immediate operands, e.g. in LDR instructions with immediate offset: LDR , [], # and in the bitfield move instructions: BFM , , #, # The ADRP instruction, however, has the following syntax: ADRP ,