mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
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
This commit is contained in:
parent
c67b1a3a76
commit
720b918eeb
@ -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…
x
Reference in New Issue
Block a user