summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-28 05:48:04 +0000
committerChris Lattner <sabre@nondot.org>2008-02-28 05:48:04 +0000
commitf1444c35e8337f5540827e67b14cc44331cc19fb (patch)
treeabb2c9336eade16068558e7b1eaf44f945fe1dbd /llvm
parentbeb6a5ba4fffadfd546f90e50d594ae98a8bc65f (diff)
downloadbcm5719-llvm-f1444c35e8337f5540827e67b14cc44331cc19fb.tar.gz
bcm5719-llvm-f1444c35e8337f5540827e67b14cc44331cc19fb.zip
Fix CodeGen/Generic/storetrunc-fp.ll on sparc, PR2105
llvm-svn: 47707
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
index 40fa95c294b..6e59631a81d 100644
--- a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
@@ -140,9 +140,10 @@ SparcTargetLowering::SparcTargetLowering(TargetMachine &TM)
// Turn FP extload into load/fextend
setLoadXAction(ISD::EXTLOAD, MVT::f32, Expand);
-
// Sparc doesn't have i1 sign extending load
setLoadXAction(ISD::SEXTLOAD, MVT::i1, Promote);
+ // Turn FP truncstore into trunc + store.
+ setTruncStoreAction(MVT::f64, MVT::f32, Expand);
// Custom legalize GlobalAddress nodes into LO/HI parts.
setOperationAction(ISD::GlobalAddress, MVT::i32, Custom);
OpenPOWER on IntegriCloud