* config/tc-arm.c (BAD_ADDR_MODE): Define.
commit75abe60ad075db75057ba858eb32addc45a66139
authorNick Clifton <nickc@redhat.com>
Thu, 10 Nov 2005 09:41:14 +0000 (10 09:41 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 10 Nov 2005 09:41:14 +0000 (10 09:41 +0000)
tree72512f017d68e745e1958e124c47f2cfb6a34e9a
parent134ea98737a7b3cf2a478c799066b3bccf7c4f0b
* 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