summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:25:46 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:25:46 +0000
commitd57f8cee1df115ea32a15209a2878b97b6f6bb82 (patch)
tree9ee2da598ac23d022bf407233ed2570db52f9923 /llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
parent3f254d536a6707f8517421581eaca396b0b18555 (diff)
downloadbcm5719-llvm-d57f8cee1df115ea32a15209a2878b97b6f6bb82.tar.gz
bcm5719-llvm-d57f8cee1df115ea32a15209a2878b97b6f6bb82.zip
We don't have FP truncstores
llvm-svn: 76039
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index fcf55c113db..7538bdc790a 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -123,12 +123,15 @@ SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm) :
setOperationAction(ISD::MULHS, MVT::i64, Expand);
setOperationAction(ISD::SMUL_LOHI, MVT::i64, Expand);
+ // Lower some FP stuff
setOperationAction(ISD::FSIN, MVT::f32, Expand);
setOperationAction(ISD::FSIN, MVT::f64, Expand);
setOperationAction(ISD::FCOS, MVT::f32, Expand);
setOperationAction(ISD::FCOS, MVT::f64, Expand);
setOperationAction(ISD::UINT_TO_FP, MVT::i32, Expand);
setOperationAction(ISD::UINT_TO_FP, MVT::i64, Expand);
+
+ setTruncStoreAction(MVT::f64, MVT::f32, Expand);
}
SDValue SystemZTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) {
OpenPOWER on IntegriCloud