Fix ARm assembler so that it rejects invalid immediate values for the Thumb ORR instr...
authorNick Clifton <nickc@redhat.com>
Tue, 13 Feb 2018 16:50:04 +0000 (16:50 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 13 Feb 2018 16:50:04 +0000 (16:50 +0000)
commitdb7bf1058d28b2b5e931c60435a13f6db15df6af
tree2ea78fb333faf39121c7d1195b2feaed39b3ddd5
parentbd7ab16b4537788ad53521c45469a1bdae84ad4a
Fix ARm assembler so that it rejects invalid immediate values for the Thumb ORR instruction.

PR 22773
* config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
instruction before assuming that it is a MOV instruction.
* testsuite/gas/arm/pr22773.s: New test.
* testsuite/gas/arm/pr22773.d: New test driver.
* testsuite/gas/arm/pr22773.l: New expected output.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/pr22773.d [new file with mode: 0644]
gas/testsuite/gas/arm/pr22773.l [new file with mode: 0644]
gas/testsuite/gas/arm/pr22773.s [new file with mode: 0644]