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/HexagonRegisterInfo.cpp | |
parent | f75d4f329cc45542cac4eaa375bad84e0535f278 (diff) | |
download | bcm5719-llvm-13a9cf28a1202aa401aec5e0b90268e52d74c360.tar.gz bcm5719-llvm-13a9cf28a1202aa401aec5e0b90268e52d74c360.zip |
[Hexagon] Foundation of support for Hexagon V66
llvm-svn: 348407
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp index 545def45a1c..9b8f4e07376 100644 --- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp +++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp @@ -312,6 +312,7 @@ unsigned HexagonRegisterInfo::getHexagonSubRegIndex( static const unsigned ISub[] = { Hexagon::isub_lo, Hexagon::isub_hi }; static const unsigned VSub[] = { Hexagon::vsub_lo, Hexagon::vsub_hi }; + static const unsigned WSub[] = { Hexagon::wsub_lo, Hexagon::wsub_hi }; switch (RC.getID()) { case Hexagon::CtrRegs64RegClassID: @@ -319,6 +320,8 @@ unsigned HexagonRegisterInfo::getHexagonSubRegIndex( return ISub[GenIdx]; case Hexagon::HvxWRRegClassID: return VSub[GenIdx]; + case Hexagon::HvxVQRRegClassID: + return WSub[GenIdx]; } if (const TargetRegisterClass *SuperRC = *RC.getSuperClasses()) |