summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-12-11 18:57:54 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-12-11 18:57:54 +0000
commita8ab1b75cb0d84ea61642d7b7c0139e6e367c28e (patch)
treee5c4b89bd21c115664b1be7bb84fa2ea11f8b3bd /llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
parente83876e31d9da26c9e0c11cf7463e4a645e96bc4 (diff)
downloadbcm5719-llvm-a8ab1b75cb0d84ea61642d7b7c0139e6e367c28e.tar.gz
bcm5719-llvm-a8ab1b75cb0d84ea61642d7b7c0139e6e367c28e.zip
[Hexagon] Add support for Hexagon V65
llvm-svn: 320404
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
index 76a7e77fc38..1101b232850 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
@@ -641,6 +641,27 @@ void HexagonDAGToDAGISel::SelectIntrinsicWChain(SDNode *N) {
CurDAG->RemoveDeadNode(N);
return;
}
+
+ unsigned IntNo = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
+ if (IntNo == Intrinsic::hexagon_V6_vgathermw ||
+ IntNo == Intrinsic::hexagon_V6_vgathermw_128B ||
+ IntNo == Intrinsic::hexagon_V6_vgathermh ||
+ IntNo == Intrinsic::hexagon_V6_vgathermh_128B ||
+ IntNo == Intrinsic::hexagon_V6_vgathermhw ||
+ IntNo == Intrinsic::hexagon_V6_vgathermhw_128B) {
+ SelectV65Gather(N);
+ return;
+ }
+ if (IntNo == Intrinsic::hexagon_V6_vgathermwq ||
+ IntNo == Intrinsic::hexagon_V6_vgathermwq_128B ||
+ IntNo == Intrinsic::hexagon_V6_vgathermhq ||
+ IntNo == Intrinsic::hexagon_V6_vgathermhq_128B ||
+ IntNo == Intrinsic::hexagon_V6_vgathermhwq ||
+ IntNo == Intrinsic::hexagon_V6_vgathermhwq_128B) {
+ SelectV65GatherPred(N);
+ return;
+ }
+
SelectCode(N);
}
@@ -654,6 +675,12 @@ void HexagonDAGToDAGISel::SelectIntrinsicWOChain(SDNode *N) {
case Intrinsic::hexagon_S2_vsplatrh:
Bits = 16;
break;
+ case Intrinsic::hexagon_V6_vaddcarry:
+ case Intrinsic::hexagon_V6_vaddcarry_128B:
+ case Intrinsic::hexagon_V6_vsubcarry:
+ case Intrinsic::hexagon_V6_vsubcarry_128B:
+ SelectHVXDualOutput(N);
+ return;
default:
SelectCode(N);
return;
OpenPOWER on IntegriCloud