summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-12-18 18:32:27 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-12-18 18:32:27 +0000
commit6b589e593d7af86f3b32d767ae98e16fa8ddb0ff (patch)
treec7c35eafea29c6a6f80729f0c7099adca7024517 /llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
parentf947137ed0b6486cb0dc8cd47496e98899fc2987 (diff)
downloadbcm5719-llvm-6b589e593d7af86f3b32d767ae98e16fa8ddb0ff.tar.gz
bcm5719-llvm-6b589e593d7af86f3b32d767ae98e16fa8ddb0ff.zip
[Hexagon] Generate HVX code for vector sign-, zero- and any-extends
Implement any-extend as zero-extend. llvm-svn: 321004
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelLowering.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
index 6387ac2ef67..dc9eed51f45 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
@@ -2013,6 +2013,11 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
setOperationAction(ISD::ADD, T, Legal);
setOperationAction(ISD::SUB, T, Legal);
setOperationAction(ISD::VSELECT, T, Legal);
+ if (T != ByteV) {
+ setOperationAction(ISD::ANY_EXTEND_VECTOR_INREG, T, Legal);
+ setOperationAction(ISD::SIGN_EXTEND_VECTOR_INREG, T, Legal);
+ setOperationAction(ISD::ZERO_EXTEND_VECTOR_INREG, T, Legal);
+ }
setOperationAction(ISD::MUL, T, Custom);
setOperationAction(ISD::SETCC, T, Custom);
OpenPOWER on IntegriCloud