diff options
author | Owen Anderson <resistor@mac.com> | 2011-12-08 19:32:14 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-12-08 19:32:14 +0000 |
commit | 0b9b9da6c87561655af834f9ced38cd4908aebb7 (patch) | |
tree | 9022594ba7f537c37e2d455777ab7406b3c18106 /llvm/lib/Target/X86/X86ISelLowering.cpp | |
parent | 4edc7360c76b00a6215c6efa54d57064eb716e9d (diff) | |
download | bcm5719-llvm-0b9b9da6c87561655af834f9ced38cd4908aebb7.tar.gz bcm5719-llvm-0b9b9da6c87561655af834f9ced38cd4908aebb7.zip |
Teach SelectionDAG to match more calls to libm functions onto existing SDNodes. Mark these nodes as illegal by default, unless the target declares otherwise.
llvm-svn: 146171
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 9bb28e0c081..cdc1f21743d 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -663,6 +663,11 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM) setOperationAction(ISD::FCOS , MVT::f80 , Expand); } + setOperationAction(ISD::FFLOOR, MVT::f80, Expand); + setOperationAction(ISD::FCEIL, MVT::f80, Expand); + setOperationAction(ISD::FTRUNC, MVT::f80, Expand); + setOperationAction(ISD::FRINT, MVT::f80, Expand); + setOperationAction(ISD::FNEARBYINT, MVT::f80, Expand); setOperationAction(ISD::FMA, MVT::f80, Expand); } |