From f6a7104e411c1abe38a1294d348445de67d43071 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 3 Feb 2011 23:17:47 +0000 Subject: [PATCH] Do not sign extend floating-point values in the asm parser. llvm-svn: 124831 --- lib/MC/MCParser/AsmParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 61ceee45f5f..8654db55966 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -568,7 +568,7 @@ bool AsmParser::ParsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) { } case AsmToken::Real: { APFloat RealVal(APFloat::IEEEdouble, getTok().getString()); - int64_t IntVal = RealVal.bitcastToAPInt().getSExtValue(); + uint64_t IntVal = RealVal.bitcastToAPInt().getZExtValue(); Res = MCConstantExpr::Create(IntVal, getContext()); Lex(); // Eat token. return false;