1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Do not sign extend floating-point values in the asm parser.

llvm-svn: 124831
This commit is contained in:
Bob Wilson 2011-02-03 23:17:47 +00:00
parent 20927bf2f0
commit f6a7104e41

View File

@ -568,7 +568,7 @@ bool AsmParser::ParsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) {
} }
case AsmToken::Real: { case AsmToken::Real: {
APFloat RealVal(APFloat::IEEEdouble, getTok().getString()); APFloat RealVal(APFloat::IEEEdouble, getTok().getString());
int64_t IntVal = RealVal.bitcastToAPInt().getSExtValue(); uint64_t IntVal = RealVal.bitcastToAPInt().getZExtValue();
Res = MCConstantExpr::Create(IntVal, getContext()); Res = MCConstantExpr::Create(IntVal, getContext());
Lex(); // Eat token. Lex(); // Eat token.
return false; return false;