[GAS, ARM] Invalid LDR immediate transformation
authorChristophe Monat <christophe.monat@st.com>
Tue, 24 Nov 2015 21:17:54 +0000 (22:17 +0100)
committerChristophe Lyon <christophe.lyon@linaro.org>
Tue, 24 Nov 2015 21:21:03 +0000 (22:21 +0100)
commit2c32be708da9011b3ce7404f2be43b17ab1eddd4
treebe96a1c54e39c74d862c3808da69d262c2af3165
parentbe81798bb66a6f2d007983f466ba4fdeb7141578
[GAS, ARM] Invalid LDR immediate transformation

2015-11-24  Christophe Monat <christophe.monat@st.com>

* config/tc-arm.c (move_or_literal_pool): Do not transform ldr
ri,=imm into movs when ri is a high register in T1.

2015-11-24  Christophe Monat <christophe.monat@st.com>

* gas/arm/thumb2_ldr_immediate_armv6t2.s: Added high register
tests.
* gas/arm/thumb2_ldr_immediate_armv6t2.d: Accounted for new test
cases.
* gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s: New.
* gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: New.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.d
gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.s
gas/testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d [new file with mode: 0644]
gas/testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s [new file with mode: 0644]