diff options
author | Bob Wilson <bob.wilson@apple.com> | 2011-02-03 23:17:47 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2011-02-03 23:17:47 +0000 |
commit | 720b918eebfae06dd15dc2e232f51b95a36586f3 (patch) | |
tree | 3a33c42a83d1e8a49195a3a609c45db52bcd5b8b /lib/MC | |
parent | c67b1a3a76ea6ff642d30610cf63595ccb661e6b (diff) |
Do not sign extend floating-point values in the asm parser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 61ceee45f5..8654db5596 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; |