[ARM] Allow MOV/MOV.W to accept all possible immediates
authorJiong Wang <jiong.wang@arm.com>
Thu, 3 Nov 2016 12:00:53 +0000 (12:00 +0000)
committerJiong Wang <jiong.wang@arm.com>
Thu, 3 Nov 2016 12:00:53 +0000 (12:00 +0000)
commitbada43421274615d0d5f629a61a60b7daa71bc15
tree9c1be5a6a202d2d65d8f1d5baabe37be2d1b43fe
parent225b362d1036121a611f3dd17fdb6780070ba51f
[ARM] Allow MOV/MOV.W to accept all possible immediates

gas/
* config/tc-arm.c (SBIT_SHIFT): New.
(T2_SBIT_SHIFT): Likewise.
(t32_insn_ok): Return TRUE for MOV in ARMv8-M Baseline.
(md_apply_fix): Try UINT16 encoding when ARM/Thumb modified immediate
encoding failed.
* testsuite/gas/arm/archv6t2-bad.s: New error case.
* testsuite/gas/arm/archv6t2-bad.l: New error match.
* testsuite/gas/arm/archv6t2.s: New testcase.
* testsuite/gas/arm/archv6t2.d: New expected result.
* testsuite/gas/arm/archv8m.s: New testcase.
* testsuite/gas/arm/archv8m-base.d: New expected result.
* testsuite/gas/arm/archv8m-main.d: Likewise.
* testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/archv6t2-bad.l
gas/testsuite/gas/arm/archv6t2-bad.s
gas/testsuite/gas/arm/archv6t2.d
gas/testsuite/gas/arm/archv6t2.s
gas/testsuite/gas/arm/archv8m-base.d
gas/testsuite/gas/arm/archv8m-main-dsp-1.d
gas/testsuite/gas/arm/archv8m-main.d
gas/testsuite/gas/arm/archv8m.s