* config/tc-arm.c (BAD_ADDR_MODE): Define.
authorNick Clifton <nickc@redhat.com>
Thu, 10 Nov 2005 09:41:14 +0000 (09:41 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 10 Nov 2005 09:41:14 +0000 (09:41 +0000)
commit01cfc07fb1258a3c0b51dd860ed24f8b9329be40
tree030a76442a646b2d8ca41941e90cb7b3962fe8b2
parent81aa3c3cd98dba5f8bf87e73a25c27015c3d00fc
* config/tc-arm.c (BAD_ADDR_MODE): Define.
  (arm_reg_parse_multi): Return NULL rather than FAIL.
  (arm_reg_parse): Fix comment, the function returns FAIL rather than NULL if
    it is unable to parse the register name.
  (do_ldrex): Use BAD_ADDR_MODE.
    Change error message for PC-relative addressing.
  (do_strex): Likewise.
  (do_t_ldrex): Use BAD_ADDR_MODE.
  (do_t_strex): Likewise.
* gas/arm/archv6t2-bad.s: Add tests of badly composed ldrex and strex
    instructions.
* gas/arm/archv6t2-bad.l: Add expected error messages.
* gas/arm/r15-bad.l: Adjust error messages for r15 usage in ldrex and strex
    instructions.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/archv6t2-bad.l
gas/testsuite/gas/arm/archv6t2-bad.s
gas/testsuite/gas/arm/r15-bad.l