diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-09 06:03:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-09 06:03:30 +0000 |
commit | 6ddf8ed6fe2d0aa5e15f7b9ad7e5049e2223bbd1 (patch) | |
tree | bd64dd0f5010eeab548966380154d9c13f4cb820 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | c0c9c5e44341a8c8394dbea0e86562b6edfb7b57 (diff) |
Implement the fpowi now by lowering to a libcall
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index f1cdcdfa97..578f8d2f3d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1620,6 +1620,13 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { getValue(I.getOperand(1)).getValueType(), getValue(I.getOperand(1)))); return 0; + case Intrinsic::powi_f32: + case Intrinsic::powi_f64: + setValue(&I, DAG.getNode(ISD::FPOWI, + getValue(I.getOperand(1)).getValueType(), + getValue(I.getOperand(1)), + getValue(I.getOperand(2)))); + return 0; case Intrinsic::pcmarker: { SDOperand Tmp = getValue(I.getOperand(1)); DAG.setRoot(DAG.getNode(ISD::PCMARKER, MVT::Other, getRoot(), Tmp)); |