diff options
author | Nick Clifton <nickc@redhat.com> | 2011-06-13 12:50:18 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-06-13 12:50:18 +0000 |
commit | af199b06016f0acab1e98de12c017f51b5d3780a (patch) | |
tree | 1244d3d9fd6a2aab34928bb943feab413007d0f6 /gas/config/tc-arm.c | |
parent | dc7eb48e0a75ef7430880a5892035b638bb422c7 (diff) | |
download | gdb-af199b06016f0acab1e98de12c017f51b5d3780a.zip gdb-af199b06016f0acab1e98de12c017f51b5d3780a.tar.gz gdb-af199b06016f0acab1e98de12c017f51b5d3780a.tar.bz2 |
PR gas/12854
Add additional checks for extraneous shifts and extra tests in the testsuite.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r-- | gas/config/tc-arm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index a34dcec..bf329d6 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -11570,6 +11570,10 @@ do_t_shift (void) inst.instruction |= inst.operands[0].reg; inst.instruction |= inst.operands[2].reg << 3; + + /* PR 12854: Error on extraneous shifts. */ + constraint (inst.operands[2].shifted, + _("extraneous shift as part of operand to shift insn")); } else { @@ -11609,6 +11613,10 @@ do_t_shift (void) inst.instruction |= inst.operands[0].reg; inst.instruction |= inst.operands[2].reg << 3; + + /* PR 12854: Error on extraneous shifts. */ + constraint (inst.operands[2].shifted, + _("extraneous shift as part of operand to shift insn")); } else { |