diff options
author | yufeng <yufeng> | 2012-10-15 14:52:05 +0000 |
---|---|---|
committer | yufeng <yufeng> | 2012-10-15 14:52:05 +0000 |
commit | 0cf58d0ed8d221ee0971470f45e5343f2de1336a (patch) | |
tree | 4bb8d12aac2f8058689d4f12deeb5520dbd9c5c2 /opcodes/aarch64-opc.c | |
parent | 04b5409b647d4950c153308009d9d7689187d880 (diff) | |
download | binutils-redhat-0cf58d0ed8d221ee0971470f45e5343f2de1336a.tar.gz |
Added missing alignment check to load/store uimm12 immediate offset.
opcodes/
* 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/
* gas/aarch64/illegal-2.s: Add test case.
* gas/aarch64/illegal-2.l: Likewise.
Diffstat (limited to 'opcodes/aarch64-opc.c')
-rw-r--r-- | opcodes/aarch64-opc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index 2d66a255e9..8c70938300 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -1426,7 +1426,7 @@ operand_general_constraint_met_p (const aarch64_opnd_info *opnds, int idx, 0, 4095 * size); return 0; } - if (!value_aligned_p (opnd->shifter.amount, size)) + if (!value_aligned_p (opnd->addr.offset.imm, size)) { set_unaligned_error (mismatch_detail, idx, size); return 0; |