aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-arm.c3
2 files changed, 7 insertions, 0 deletions
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 <paul@codesourcery.com>
+
+ * config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes.
+
+2007-03-24 Paul Brook <paul@codesourcery.com>
Mark Shinwell <shinwell@codesourcery.com>
* 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)