diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-04 23:48:25 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-04 23:48:25 +0000 |
commit | cce90f55ed5bc6414850e9085ab47382892577b9 (patch) | |
tree | a26b06293f5540d0d471174b989858fbcd47a1be /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 9797fee9a17c5dee3bede95bd16427301764ab4c (diff) | |
download | bcm5719-llvm-cce90f55ed5bc6414850e9085ab47382892577b9.tar.gz bcm5719-llvm-cce90f55ed5bc6414850e9085ab47382892577b9.zip |
Implement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.
llvm-svn: 35678
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8e0660478e0..1bd2aae715e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2438,6 +2438,11 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { DAG.setRoot(Tmp.getValue(1)); return 0; } + case Intrinsic::bit_part_select: { + MVT::ValueType Ty = getValue(I.getOperand(1)).getValueType(); + setValue(&I, DAG.getTargetConstant(0, Ty)); + return 0; + } case Intrinsic::bswap: setValue(&I, DAG.getNode(ISD::BSWAP, getValue(I.getOperand(1)).getValueType(), |