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 | f0359b343a45a78441c0cc284aaad13172040f82 (patch) | |
| tree | 4d10fd15638695cf1ff1562212d304fe71a81a77 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
| parent | a4b7de8669a1c0db74d3a8783cd631f0fb9e6766 (diff) | |
| download | bcm5719-llvm-f0359b343a45a78441c0cc284aaad13172040f82.tar.gz bcm5719-llvm-f0359b343a45a78441c0cc284aaad13172040f82.zip | |
Implement the fpowi now by lowering to a libcall
llvm-svn: 30225
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index c32da68454a..3545b246894 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2581,7 +2581,14 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { break; } break; - + case ISD::FPOWI: { + // We always lower FPOWI into a libcall. No target support it yet. + const char *FnName = Node->getValueType(0) == MVT::f32 + ? "__powisf2" : "__powidf2"; + SDOperand Dummy; + Result = ExpandLibCall(FnName, Node, Dummy); + break; + } case ISD::BIT_CONVERT: if (!isTypeLegal(Node->getOperand(0).getValueType())) { Result = ExpandBIT_CONVERT(Node->getValueType(0), Node->getOperand(0)); |

