diff options
author | Paul Brook <paul@codesourcery.com> | 2007-03-24 16:09:16 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2007-03-24 16:09:16 +0000 |
commit | 1198ca51f09aca00338bea2f30cc68db3a1d3f7d (patch) | |
tree | d919ca1337530213d8bd583deb6f05accf0996cb | |
parent | 34711ca3dd782370e5eeab35b78b2500cf4122f0 (diff) | |
download | gdb-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/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 3 |
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) |