This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PING, ARM] fix ADR encoding
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: Richard Earnshaw <rearnsha at arm dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Fri, 6 Jul 2012 09:05:25 -0600
- Subject: Re: [PING, ARM] fix ADR encoding
- References: <4FF642E9.9040406@codesourcery.com> <4FF6F68A.50307@arm.com>
On 07/06/2012 08:30 AM, Richard Earnshaw wrote:
Could you check that this does the correct thing for
ADR r0, .+4
Which should also generate encoding A2
Yes, it does. The above disassembles as
00000000 <foo> e24f0004 sub r0, pc, #4
which matches the A2 pattern:
1110 00 1 0010 0 1111 0000 000000000100
-Sandra