This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] ARC handling of LD and ST instructions
- To: Stacey Sheldon <ssheldon at Catena dot com>
- Subject: Re: [PATCH] ARC handling of LD and ST instructions
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 22 Jun 2001 09:51:22 +0100
- Cc: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
- References: <522FDAAFD532D511A0AB0002A51390EB57E3E5@cat01s2.catena.com>
Hi Stacey,
> This patch does the following things:
>
> - Cleans up handling of the 'c' register in the ST opcode by removing
> overloading of that token during parsing.
> - Adds (missing) handling of:
> ld reg, [val]
> where val is shimm, rather than limm.
> EVEN shimm values are encoded as: ld reg, [val/2, val/2]
> ODD shimm values are encoded as a 64b: ld reg, [limm]
>
> Note: my version 1.1.1.1 corresponds to the binutils-010604 snapshot.
>
> Let me know if there are any problems with this patch.
There are a couple of problems with this patch:
1. No ChangeLog entry. [Please submit this as plain next, not a
context diff].
2. GNU Formatting style not followed in the comments. [Treat them
as real sentances, start with a capital letter. End with a full
stop followed by two spaces].
and the one that actually matters:
3. The GAS ARC testsuite fails with your patch applied:
.../gas/testsuite/gas/arc/st.s: Assembler messages:
.../gas/testsuite/gas/arc/st.s:17: Warning: operand out of range (80 not between -32 and 31)
.../gas/testsuite/gas/arc/st.s:17: Error: unresolved expression that must be resolved
FAIL: gas/arc/st
If you can fix these problems I will be happy to review your patch
again.
Cheers
Nick