summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-11 23:21:31 +0000
committerDan Gohman <gohman@apple.com>2007-10-11 23:21:31 +0000
commit482732af9d8e32ee5e2a29b264f31735603cb290 (patch)
tree4e847af0e3a11eeca8399bc9ecfb06a7990a8dfe /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parentfd66486950253677c165af71e6ef1412d8964ec7 (diff)
downloadbcm5719-llvm-482732af9d8e32ee5e2a29b264f31735603cb290.tar.gz
bcm5719-llvm-482732af9d8e32ee5e2a29b264f31735603cb290.zip
Set ISD::FPOW to Expand.
llvm-svn: 42881
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 4a206653d51..ca1982fe6ea 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -101,13 +101,15 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
setOperationAction(ISD::UDIVREM, MVT::i64, Expand);
setOperationAction(ISD::SDIVREM, MVT::i64, Expand);
- // We don't support sin/cos/sqrt/fmod
+ // We don't support sin/cos/sqrt/fmod/pow
setOperationAction(ISD::FSIN , MVT::f64, Expand);
setOperationAction(ISD::FCOS , MVT::f64, Expand);
setOperationAction(ISD::FREM , MVT::f64, Expand);
+ setOperationAction(ISD::FPOW , MVT::f64, Expand);
setOperationAction(ISD::FSIN , MVT::f32, Expand);
setOperationAction(ISD::FCOS , MVT::f32, Expand);
setOperationAction(ISD::FREM , MVT::f32, Expand);
+ setOperationAction(ISD::FPOW , MVT::f32, Expand);
// If we're enabling GP optimizations, use hardware square root
if (!TM.getSubtarget<PPCSubtarget>().hasFSQRT()) {
OpenPOWER on IntegriCloud