This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ARM Thumb byte stores
- To: binutils at sources dot redhat dot com
- Subject: ARM Thumb byte stores
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 06 Feb 2001 19:21:41 +0000
- Organization: Red Hat UK Ltd.
arm-elf-gcc -mthumb generates the following instruction:
.code 16
strb r3, [sp]
However this seems to be falling foul of a check in
gas/config/tc-arm.c:5863:
if (Rb == REG_PC || Rb == REG_SP)
{
if (size != THUMB_WORD)
{
inst.error = _("byte or halfword not valid for base register");
return;
}
The size in this case is obviously THUMB_BYTE, not THUMB_WORD. So is this
check in gas correct? Or is this a gcc problem. I don't know much about
Thumb, sorry.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine