From 1198ca51f09aca00338bea2f30cc68db3a1d3f7d Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Sat, 24 Mar 2007 16:09:16 +0000 Subject: 2007-03-24 Paul Brook * config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes. --- gas/ChangeLog | 4 ++++ gas/config/tc-arm.c | 3 +++ 2 files changed, 7 insertions(+) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index 732d960..8b9bf90 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,4 +1,8 @@ 2007-03-24 Paul Brook + + * config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes. + +2007-03-24 Paul Brook Mark Shinwell * config/tc-arm.c (operand_parse_code): Add OP_oRRw. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index cb2bcda..f85ea36 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -9125,6 +9125,9 @@ do_t_ldmstm (void) { constraint (inst.operands[0].reg > 7 || (inst.operands[1].imm & ~0xff), BAD_HIREG); + constraint (inst.instruction != T_MNEM_ldmia + && inst.instruction != T_MNEM_stmia, + _("Thumb-2 instruction only valid in unified syntax")); if (inst.instruction == T_MNEM_stmia) { if (!inst.operands[0].writeback) -- cgit v1.1