ARM Thumb byte stores

Jonathan Larmour jlarmour@redhat.com
Tue Feb 6 11:21:00 GMT 2001


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


More information about the Binutils mailing list