diff options
author | Yufeng Zhang <yufeng.zhang@arm.com> | 2012-10-15 14:52:06 +0000 |
---|---|---|
committer | Yufeng Zhang <yufeng.zhang@arm.com> | 2012-10-15 14:52:06 +0000 |
commit | 9de794e14842cdc778c4ee490e613c7163c5a976 (patch) | |
tree | 1b81633e536e6e41fa9a0b12acf5bbef9c83bf59 /gas | |
parent | f05682d46014082c3afe2bff6d04a1d203bce119 (diff) | |
download | gdb-9de794e14842cdc778c4ee490e613c7163c5a976.zip gdb-9de794e14842cdc778c4ee490e613c7163c5a976.tar.gz gdb-9de794e14842cdc778c4ee490e613c7163c5a976.tar.bz2 |
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 'gas')
-rw-r--r-- | gas/testsuite/gas/aarch64/illegal-2.l | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/illegal-2.s | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/gas/testsuite/gas/aarch64/illegal-2.l b/gas/testsuite/gas/aarch64/illegal-2.l index 2ba6894..372596b 100644 --- a/gas/testsuite/gas/aarch64/illegal-2.l +++ b/gas/testsuite/gas/aarch64/illegal-2.l @@ -6,3 +6,4 @@ [^:]*:16: Error: .*$ [^:]*:19: Error: .*$ [^:]*:20: Error: .*$ +[^:]*:24: Error: .*$ diff --git a/gas/testsuite/gas/aarch64/illegal-2.s b/gas/testsuite/gas/aarch64/illegal-2.s index 3aa7283..7711e14 100644 --- a/gas/testsuite/gas/aarch64/illegal-2.s +++ b/gas/testsuite/gas/aarch64/illegal-2.s @@ -20,3 +20,5 @@ mov wsp, #0x33030000 .set u16, 0xfff0 + + ldr x0, [x0, #257] |