mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 07:24:47 +00:00
MC: Fix .octa output for APInts with BitWidth > 128
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200615 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2335,7 +2335,8 @@ bool AsmParser::parseDirectiveOctaValue() {
|
||||
hi = 0;
|
||||
lo = IntValue.getZExtValue();
|
||||
} else if (IntValue.isIntN(128)) {
|
||||
hi = IntValue.getHiBits(64).getZExtValue();
|
||||
// It might actually have more than 128 bits, but the top ones are zero.
|
||||
hi = IntValue.getHiBits(IntValue.getBitWidth() - 64).getZExtValue();
|
||||
lo = IntValue.getLoBits(64).getZExtValue();
|
||||
} else
|
||||
return Error(ExprLoc, "literal value out of range for directive");
|
||||
|
Reference in New Issue
Block a user