GAS/ARM Fix regression of handling "ldr, =" -> mvn
Richard Earnshaw
rearnsha@arm.com
Fri Jan 11 09:22:00 GMT 2002
It turns out that one of my earlier patches has caused a regression for
handling
ldr Rn, =-1
which should be translated into
mvn Rn, #0
It turns out that there were no tests for this, or similar ldr = patterns.
The patch below fixes this and adds a new regression test so that it
shouldn't happen again.
R.
* tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
op that can be translated into a mvn instruction.
Testsuite:
* gas/arm/ldconst.s gas/arm/ldconst.d: New files. Test ldr with
immediate pseudo-operations.
* gas/arm/arm.exp: Run it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldconst.patch
Type: text/x-patch
Size: 5910 bytes
Desc: ldconst.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20020111/0d4240af/attachment.bin>
More information about the Binutils
mailing list