summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcISelLowering.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-09-04 00:47:13 +0000
committerDale Johannesen <dalej@apple.com>2008-09-04 00:47:13 +0000
commitda2d80688b68fd1667b74efc9f008b33c347c2a3 (patch)
tree3a486fffb3ceb5b9182f365874a63b755ea4258f /llvm/lib/Target/Sparc/SparcISelLowering.cpp
parent3cbb3b2920e6bb3ba7eac44c1f2165b022616ffe (diff)
downloadbcm5719-llvm-da2d80688b68fd1667b74efc9f008b33c347c2a3.tar.gz
bcm5719-llvm-da2d80688b68fd1667b74efc9f008b33c347c2a3.zip
Add intrinsics for log, log2, log10, exp, exp2.
No functional change (and no FE change to generate them). llvm-svn: 55753
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelLowering.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
index aa261dcf22e..e46942276d3 100644
--- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
@@ -586,6 +586,16 @@ SparcTargetLowering::SparcTargetLowering(TargetMachine &TM)
setOperationAction(ISD::FCOPYSIGN, MVT::f32, Expand);
setOperationAction(ISD::FPOW , MVT::f64, Expand);
setOperationAction(ISD::FPOW , MVT::f32, Expand);
+ setOperationAction(ISD::FLOG , MVT::f64, Expand);
+ setOperationAction(ISD::FLOG , MVT::f32, Expand);
+ setOperationAction(ISD::FLOG2, MVT::f64, Expand);
+ setOperationAction(ISD::FLOG2, MVT::f32, Expand);
+ setOperationAction(ISD::FLOG10, MVT::f64, Expand);
+ setOperationAction(ISD::FLOG10, MVT::f32, Expand);
+ setOperationAction(ISD::FEXP , MVT::f64, Expand);
+ setOperationAction(ISD::FEXP , MVT::f32, Expand);
+ setOperationAction(ISD::FEXP2, MVT::f64, Expand);
+ setOperationAction(ISD::FEXP2, MVT::f32, Expand);
setOperationAction(ISD::SHL_PARTS, MVT::i32, Expand);
setOperationAction(ISD::SRA_PARTS, MVT::i32, Expand);
OpenPOWER on IntegriCloud