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:
Dale Johannesen 2009-07-09 20:06:27 +00:00
parent 98a39613ec
commit 39f59d8250

View File

@ -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