diff options
author | CaiJingtao <caijingtao@huawei.com> | 2022-10-11 09:55:10 +0800 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2022-10-17 10:21:39 +0100 |
commit | 2a3ed404494cfd7f3b10b5fad7c8625e3942d933 (patch) | |
tree | 4875032ea40a6218403431d0cad52591b597f117 /opcodes/aarch64-asm.c | |
parent | 13c0b769e826bc98492714193b5e7b222878bb82 (diff) | |
download | gdb-2a3ed404494cfd7f3b10b5fad7c8625e3942d933.zip gdb-2a3ed404494cfd7f3b10b5fad7c8625e3942d933.tar.gz gdb-2a3ed404494cfd7f3b10b5fad7c8625e3942d933.tar.bz2 |
Allow explicit size specifier for predicate operand of {sq, uq, }{incp, decp}
Omitting predicate size specifier in vector form of {sq, uq, }{decp, incp} is deprecated and will be prohibited in a future release of the aarch64,
see https://developer.arm.com/documentation/ddi0602/2021-09/SVE-Instructions/DECP--vector---Decrement-vector-by-count-of-true-predicate-elements-.
This allows explicit size specifier, e.g. `decp z0.h, p0.h`, for predicate operand of these SVE instructions.
The existing behaviour of not requiring the specifier is preserved.
And the disasembly is with the specifier with this patch.
The GAS tests passed under our local tests.
opcodes/
* aarch64-asm.c: Modify `sve_size_hsd` encoding.
* aarch64-tbl.h (aarch64_opcode_table): Add QUALS's type OP_SVE_Vv_HSD
for decp, incp, sqdecp, sqincp, uqdecp and uqincp.
gas/
* testsuite/gas/aarch64/sve-movprfx_23.s: Update movprfx_23 testcase's
test_sametwo macro, where take the predicate size specifier.
* testsuite/gas/aarch64/sve-movprfx_23.d: Update movprfx_23 testcase's
expected disassembly.
* testsuite/gas/aarch64/sve-movprfx_23.l: Update movprfx_23 testcase's
expected assembler messages.
* testsuite/gas/aarch64/sve.s: Add sve testcase's instructions for
decp, incp, sqdecp, sqincp, uqdecp and uqincp, which take the
predicate size specifier.
* testsuite/gas/aarch64/sve.d: Update sve testcase's expected
disassembly.
Signed-off-by: CaiJingtao <caijingtao@huawei.com>
Diffstat (limited to 'opcodes/aarch64-asm.c')
-rw-r--r-- | opcodes/aarch64-asm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/aarch64-asm.c b/opcodes/aarch64-asm.c index de4c452..e94a732 100644 --- a/opcodes/aarch64-asm.c +++ b/opcodes/aarch64-asm.c @@ -1891,7 +1891,8 @@ aarch64_encode_variant_using_iclass (struct aarch64_inst *inst) break; case sve_size_hsd: - insert_field (FLD_size, &inst->value, aarch64_get_variant (inst) + 1, 0); + /* MOD 3 For `OP_SVE_Vv_HSD`. */ + insert_field (FLD_size, &inst->value, aarch64_get_variant (inst) % 3 + 1, 0); break; case sve_size_bh: |