diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2023-03-30 11:09:04 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-03-30 11:09:04 +0100 |
commit | 575c497a4acde05bc67da24ae2d3af5288e8f763 (patch) | |
tree | f474d8adab18ffae18c7c285abedf9dc3111b570 /include | |
parent | e9e1ddbb9894bc9eb4d091f3406e5f77c78cd7b8 (diff) | |
download | fsf-binutils-gdb-575c497a4acde05bc67da24ae2d3af5288e8f763.zip fsf-binutils-gdb-575c497a4acde05bc67da24ae2d3af5288e8f763.tar.gz fsf-binutils-gdb-575c497a4acde05bc67da24ae2d3af5288e8f763.tar.bz2 |
aarch64: Rename za_tile_vector to za_index
za_tile_vector is also used for indexing ZA as a whole, rather than
just for indexing tiles. The former is more common than the latter
in SME2, so this patch generalises the name to "indexed_za".
The patch also names the associated structure, so that later patches
can reuse it during parsing.
Diffstat (limited to 'include')
-rw-r--r-- | include/opcode/aarch64.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index 691247a..4a554df 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -1108,6 +1108,18 @@ extern const aarch64_cond aarch64_conds[16]; const aarch64_cond* get_cond_from_value (aarch64_insn value); const aarch64_cond* get_inverted_cond (const aarch64_cond *cond); +/* Information about a reference to part of ZA. */ +struct aarch64_indexed_za +{ + int regno; /* <ZAn> */ + struct + { + int regno; /* <Wv> */ + int imm; /* <imm> */ + } index; + unsigned v : 1; /* <HV> horizontal or vertical vector indicator. */ +}; + /* Structure representing an operand. */ struct aarch64_opnd_info @@ -1172,16 +1184,7 @@ struct aarch64_opnd_info } sysreg; /* ZA tile vector, e.g. <ZAn><HV>.D[<Wv>{, <imm>}] */ - struct - { - int regno; /* <ZAn> */ - struct - { - int regno; /* <Wv> */ - int imm; /* <imm> */ - } index; - unsigned v : 1; /* <HV> horizontal or vertical vector indicator. */ - } za_tile_vector; + struct aarch64_indexed_za indexed_za; const aarch64_cond *cond; /* The encoding of the PSTATE field. */ |