[Patch, AArch64] Fix alignment check on load/store uimm12 offset
Yufeng Zhang
Yufeng.Zhang@arm.com
Fri Oct 12 13:43:00 GMT 2012
Hi,
This patch fixes the alignment check on the immediate offset of the
load/store instructions with 12-bit unsigned immediate field. It fixes
the bug where e.g. ldr x0, [x0, #257] was silently assembled as ldr x0,
[x0, #256].
Is it OK to commit?
Thanks,
Yufeng
opcodes/ChangeLog
* aarch64-opc.c (operand_general_constraint_met_p): Change to check
the alignment of addr.offset.imm instead of that of
shifter.amount for
operand type AARCH64_OPND_ADDR_UIMM12.
gas/testsuite/ChangeLog
* gas/aarch64/illegal-2.s: Add test case.
* gas/aarch64/illegal-2.l: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: offset-align.patch
Type: text/x-patch
Size: 1096 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20121012/2b341c6e/attachment.bin>
More information about the Binutils
mailing list