From 3f1891ca6d9c353702f4e5a06f4ef597c318f513 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 May 2008 04:14:30 +0000 Subject: [PATCH] Fix CodeGen/Generic/2005-10-21-longlonggtu.ll on ia64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51634 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/IA64/IA64ISelLowering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/IA64/IA64ISelLowering.cpp b/lib/Target/IA64/IA64ISelLowering.cpp index bcce7e672e1..dbf205d9323 100644 --- a/lib/Target/IA64/IA64ISelLowering.cpp +++ b/lib/Target/IA64/IA64ISelLowering.cpp @@ -530,7 +530,8 @@ IA64TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy, case MVT::f32: RetVal = DAG.getCopyFromReg(Chain, IA64::F8, MVT::f64, InFlag); Chain = RetVal.getValue(1); - RetVal = DAG.getNode(ISD::TRUNCATE, MVT::f32, RetVal); + RetVal = DAG.getNode(ISD::FP_ROUND, MVT::f32, RetVal, + DAG.getIntPtrConstant(0)); break; case MVT::f64: RetVal = DAG.getCopyFromReg(Chain, IA64::F8, MVT::f64, InFlag);