mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-28 06:37:14 +00:00
Allow the b/h/w/k constraints to be applied to values that have multiple alternatives, and end up not being registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35320 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
188b9fe834
commit
1439352ece
@ -499,7 +499,10 @@ bool X86ATTAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
case 'h': // Print QImode high register
|
||||
case 'w': // Print HImode register
|
||||
case 'k': // Print SImode register
|
||||
return printAsmMRegister(MI->getOperand(OpNo), ExtraCode[0]);
|
||||
if (MI->getOperand(OpNo).isReg())
|
||||
return printAsmMRegister(MI->getOperand(OpNo), ExtraCode[0]);
|
||||
printOperand(MI, OpNo);
|
||||
return false;
|
||||
|
||||
case 'P': // Don't print @PLT, but do print as memory.
|
||||
printOperand(MI, OpNo, "mem");
|
||||
|
Loading…
x
Reference in New Issue
Block a user