From d8e7451dc3414cfc43a7622e5f0051a5ac5e94a2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 7 Dec 2006 01:24:16 +0000 Subject: Fix i64 uint_to_fp on ppc64 llvm-svn: 32297 --- llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp') diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 1681406b396..bcdb1e1584f 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -181,7 +181,8 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) // They also have instructions for converting between i64 and fp. setOperationAction(ISD::FP_TO_SINT, MVT::i64, Custom); setOperationAction(ISD::SINT_TO_FP, MVT::i64, Custom); - + setOperationAction(ISD::UINT_TO_FP, MVT::i64, Expand); + // FIXME: disable this lowered code. This generates 64-bit register values, // and we don't model the fact that the top part is clobbered by calls. We // need to flag these together so that the value isn't live across a call. -- cgit v1.2.3