Fix CodeGen/Generic/2005-10-21-longlonggtu.ll on ia64.

llvm-svn: 51634
This commit is contained in:
Chris Lattner 2008-05-28 04:14:30 +00:00
parent 724895625b
commit 633cd5949b
1 changed files with 2 additions and 1 deletions

View File

@ -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);