[AArch64][SVE 14/32] Make aarch64_logical_immediate_p take an element size
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 Sep 2016 15:51:09 +0000 (16:51 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 Sep 2016 15:51:09 +0000 (16:51 +0100)
commit42408347b86745fdbd4bec9ee3a6a3fee31c4dee
tree5134e249ebca1ba93871174da6773e65965ae96d
parent4989adac848eb8f2fee8b98d9615d2fded22623b
[AArch64][SVE 14/32] Make aarch64_logical_immediate_p take an element size

SVE supports logical immediate operations on 8-bit, 16-bit and 32-bit
elements, treating them as aliases of operations on 64-bit elements in
which the immediate is replicated.  This patch therefore replaces the
"32-bit/64-bit" input to aarch64_logical_immediate_p with a more
general "number of bytes" input.

opcodes/
* aarch64-opc.c (aarch64_logical_immediate_p): Replace is32
with an esize parameter.
(operand_general_constraint_met_p): Update accordingly.
Fix misindented code.
* aarch64-asm.c (aarch64_ins_limm): Update call to
aarch64_logical_immediate_p.
opcodes/ChangeLog
opcodes/aarch64-asm.c
opcodes/aarch64-opc.c