summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-05 02:13:10 +0000
committerDan Gohman <gohman@apple.com>2010-03-05 02:13:10 +0000
commit808ab341b4572815a74235ef00ccb446d334b957 (patch)
tree44599fc72f6c4152ad4acaa275850a6950f11829 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parentcfa7ca19974a463b47f16a61bfecf7f532dca07d (diff)
downloadexternal_llvm-808ab341b4572815a74235ef00ccb446d334b957.zip
external_llvm-808ab341b4572815a74235ef00ccb446d334b957.tar.gz
external_llvm-808ab341b4572815a74235ef00ccb446d334b957.tar.bz2
Fix these constants to be more portable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 51404dc..492a43f 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -2011,11 +2011,11 @@ SDValue SelectionDAGLegalize::ExpandLegalINT_TO_FP(bool isSigned,
// Implementation following __floatundidf in compiler_rt.
SDValue TwoP52 =
- DAG.getConstant(0x4330000000000000, MVT::i64);
+ DAG.getConstant(UINT64_C(0x4330000000000000), MVT::i64);
SDValue TwoP84PlusTwoP52 =
- DAG.getConstantFP(BitsToDouble(0x4530000000100000), MVT::f64);
+ DAG.getConstantFP(BitsToDouble(UINT64_C(0x4530000000100000)), MVT::f64);
SDValue TwoP84 =
- DAG.getConstant(0x4530000000000000, MVT::i64);
+ DAG.getConstant(UINT64_C(0x4530000000000000), MVT::i64);
SDValue Lo = DAG.getZeroExtendInReg(Op0, dl, MVT::i32);
SDValue Hi = DAG.getNode(ISD::SRL, dl, MVT::i64, Op0,