mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
Handle 'A' modifier in inline asms.
gcc.apple/asm-block-13.c gcc.apple/asm-block-57.c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98a39613ec
commit
39f59d8250
@ -656,6 +656,15 @@ bool X86ATTAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
case 'c': // Don't print "$" before a global var name or constant.
|
||||
printOperand(MI, OpNo, "mem");
|
||||
return false;
|
||||
|
||||
case 'A': // Print '*' before a register (it must be a register)
|
||||
if (MI->getOperand(OpNo).isReg()) {
|
||||
O << '*';
|
||||
printOperand(MI, OpNo);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
case 'b': // Print QImode register
|
||||
case 'h': // Print QImode high register
|
||||
case 'w': // Print HImode register
|
||||
|
Loading…
Reference in New Issue
Block a user