mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Add support for the 'H' modifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -302,6 +302,9 @@ void X86AsmPrinter::printLeaMemReference(const MachineInstr *MI, unsigned Op,
|
||||
printSymbolOperand(MI->getOperand(Op+3), O);
|
||||
}
|
||||
|
||||
if (Modifier && strcmp(Modifier, "H") == 0)
|
||||
O << "+8";
|
||||
|
||||
if (HasParenPart) {
|
||||
assert(IndexReg.getReg() != X86::ESP &&
|
||||
"X86 doesn't allow scaling by ESP");
|
||||
@@ -458,6 +461,9 @@ bool X86AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI,
|
||||
case 'q': // Print SImode register
|
||||
// These only apply to registers, ignore on mem.
|
||||
break;
|
||||
case 'H':
|
||||
printMemReference(MI, OpNo, O, "H");
|
||||
return false;
|
||||
case 'P': // Don't print @PLT, but do print as memory.
|
||||
printMemReference(MI, OpNo, O, "no-rip");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user