summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-12 05:21:51 +0000
committerChris Lattner <sabre@nondot.org>2006-12-12 05:21:51 +0000
commit080881614d19ba54abe964a8cc7ad5da5d51d3b4 (patch)
tree4a7c4c341edcfa6bbcfc30b192b082d5b77bc5ed /llvm/lib
parent6801f02557aca64a039c590265fec78392594cd4 (diff)
downloadbcm5719-llvm-080881614d19ba54abe964a8cc7ad5da5d51d3b4.tar.gz
bcm5719-llvm-080881614d19ba54abe964a8cc7ad5da5d51d3b4.zip
this can only be fptrunc.
llvm-svn: 32473
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 3b6185c84ed..b4f25f5cdff 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -790,7 +790,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
// Only do this if the target has a native EXTLOAD instruction from
// f32.
TLI.isLoadXLegal(ISD::EXTLOAD, MVT::f32)) {
- LLVMC = cast<ConstantFP>(ConstantExpr::getFPCast(LLVMC, Type::FloatTy));
+ LLVMC = cast<ConstantFP>(ConstantExpr::getFPTrunc(LLVMC, Type::FloatTy));
VT = MVT::f32;
Extend = true;
}
OpenPOWER on IntegriCloud