forked from OSchip/llvm-project
Do not sign extend floating-point values in the asm parser.
llvm-svn: 124831
This commit is contained in:
parent
fa95661168
commit
813bdf6e58
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue