Add support for converting LDR Rx,=<imm> to MOV or MVN in Thumb2 mode.
authorAlessandro Marzocchi <alessandro.marzocchi@gmail.com>
Wed, 17 Jun 2015 12:50:52 +0000 (13:50 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 17 Jun 2015 12:50:52 +0000 (13:50 +0100)
commit1256987795a7f61826c0e5cc2ee023a579bb0a80
tree77ca039d2d559d8038ed89ca4335e11f3e833adc
parentba592044bc04610d6fa14d0a95931bac303ace37
Add support for converting LDR Rx,=<imm> to MOV or MVN in Thumb2 mode.

PR gas/18499
gas * config/tc-arm.c (move_or_literal_pool): Add support for LDR Rx,=
to MOV.w or MVN.w for Thumb2.

tests * gas/arm/thumb2_ldr_immediate_armv6.s: New test case.
* gas/arm/thumb2_ldr_immediate_armv6.d: Expected disassembly.
* gas/arm/thumb2_ldr_immediate_armv6t2.s: New test case.
* gas/arm/thumb2_ldr_immediate_armv6t2.d: Expected disassembly.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6.d [new file with mode: 0644]
gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6.s [new file with mode: 0644]
gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.d [new file with mode: 0644]
gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.s [new file with mode: 0644]