diff options
author | Dale Johannesen <dalej@apple.com> | 2007-09-28 01:08:20 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-09-28 01:08:20 +0000 |
commit | 317096ab3710fda0960be58804e9f80c800340f6 (patch) | |
tree | 212f900febeda8dca58c4b5bc7dfa6183aa24b08 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | ef0ab932ef3b07016ffb827cd529d4787d7ed12e (diff) |
Add sqrt and powi intrinsics for long double.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index f582c8f1d7..23ad28f33b 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2798,12 +2798,18 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { case Intrinsic::sqrt_f32: case Intrinsic::sqrt_f64: + case Intrinsic::sqrt_f80: + case Intrinsic::sqrt_f128: + case Intrinsic::sqrt_ppcf128: setValue(&I, DAG.getNode(ISD::FSQRT, getValue(I.getOperand(1)).getValueType(), getValue(I.getOperand(1)))); return 0; case Intrinsic::powi_f32: case Intrinsic::powi_f64: + case Intrinsic::powi_f80: + case Intrinsic::powi_f128: + case Intrinsic::powi_ppcf128: setValue(&I, DAG.getNode(ISD::FPOWI, getValue(I.getOperand(1)).getValueType(), getValue(I.getOperand(1)), |