diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-12-05 20:18:09 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-12-05 20:18:09 +0000 |
commit | 13a9cf28a1202aa401aec5e0b90268e52d74c360 (patch) | |
tree | 881cea7a03a016be9fce8867b309dfecbfe04d1a /llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp | |
parent | f75d4f329cc45542cac4eaa375bad84e0535f278 (diff) | |
download | llvm-13a9cf28a1202aa401aec5e0b90268e52d74c360.zip llvm-13a9cf28a1202aa401aec5e0b90268e52d74c360.tar.gz llvm-13a9cf28a1202aa401aec5e0b90268e52d74c360.tar.bz2 |
[Hexagon] Foundation of support for Hexagon V66
llvm-svn: 348407
Diffstat (limited to 'llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp b/llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp index 9051c0f..428b42e 100644 --- a/llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp +++ b/llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp @@ -117,6 +117,10 @@ DecodeGeneralDoubleLow8RegsRegisterClass(MCInst &Inst, unsigned RegNo, static DecodeStatus DecodeHvxWRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder); +static DecodeStatus DecodeHvxVQRRegisterClass(MCInst &Inst, + unsigned RegNo, + uint64_t Address, + const void *Decoder); static DecodeStatus DecodePredRegsRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder); @@ -608,6 +612,18 @@ static DecodeStatus DecodeHvxWRRegisterClass(MCInst &Inst, unsigned RegNo, return (DecodeRegisterClass(Inst, RegNo >> 1, HvxWRDecoderTable)); } +LLVM_ATTRIBUTE_UNUSED // Suppress warning temporarily. +static DecodeStatus DecodeHvxVQRRegisterClass(MCInst &Inst, + unsigned RegNo, + uint64_t /*Address*/, + const void *Decoder) { + static const MCPhysReg HvxVQRDecoderTable[] = { + Hexagon::VQ0, Hexagon::VQ1, Hexagon::VQ2, Hexagon::VQ3, + Hexagon::VQ4, Hexagon::VQ5, Hexagon::VQ6, Hexagon::VQ7}; + + return DecodeRegisterClass(Inst, RegNo >> 2, HvxVQRDecoderTable); +} + static DecodeStatus DecodePredRegsRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t /*Address*/, const void *Decoder) { |