diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-04-10 21:40:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-04-10 21:40:28 +0000 |
commit | d0007f3c835596b9fb1f98ed7c75a090b711875a (patch) | |
tree | 5ee6d77e261f29dd55c7c7988383b2290d7e8e43 /llvm/lib/Target/ARM/ARMISelLowering.cpp | |
parent | 02ecae92826f4d3e0a0e99a94b0d0d54c990f3fe (diff) | |
download | bcm5719-llvm-d0007f3c835596b9fb1f98ed7c75a090b711875a.tar.gz bcm5719-llvm-d0007f3c835596b9fb1f98ed7c75a090b711875a.zip |
Handle llvm.fma.* intrinsics. rdar://10914096
llvm-svn: 154439
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index fcb4f4fd097..a103c94cede 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -769,8 +769,10 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) setOperationAction(ISD::FPOW, MVT::f64, Expand); setOperationAction(ISD::FPOW, MVT::f32, Expand); - setOperationAction(ISD::FMA, MVT::f64, Expand); - setOperationAction(ISD::FMA, MVT::f32, Expand); + if (!Subtarget->hasVFP4()) { + setOperationAction(ISD::FMA, MVT::f64, Expand); + setOperationAction(ISD::FMA, MVT::f32, Expand); + } // Various VFP goodness if (!TM.Options.UseSoftFloat && !Subtarget->isThumb1Only()) { |