2007-03-24 Paul Brook <paul@codesourcery.com>

* config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes.
This commit is contained in:
Paul Brook 2007-03-24 16:09:16 +00:00
parent 34711ca3dd
commit 1198ca51f0
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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>

View File

@ -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)