aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2007-03-24 16:09:16 +0000
committerPaul Brook <paul@codesourcery.com>2007-03-24 16:09:16 +0000
commit1198ca51f09aca00338bea2f30cc68db3a1d3f7d (patch)
treed919ca1337530213d8bd583deb6f05accf0996cb
parent34711ca3dd782370e5eeab35b78b2500cf4122f0 (diff)
downloadgdb-1198ca51f09aca00338bea2f30cc68db3a1d3f7d.zip
gdb-1198ca51f09aca00338bea2f30cc68db3a1d3f7d.tar.gz
gdb-1198ca51f09aca00338bea2f30cc68db3a1d3f7d.tar.bz2
2007-03-24 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes.
-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)