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:
parent
20927bf2f0
commit
f6a7104e41
@ -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
Block a user