mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Don't print [%reg + 0], just print [%reg]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3334ebbe3
commit
8005ed3bd7
@ -452,8 +452,10 @@ void V8Printer::printBaseOffsetPair (const MachineInstr *MI, int i) {
|
||||
assert (MI->getOperand (i + 1).isImmediate()
|
||||
&& "2nd half of base-offset pair must be immediate-value machine operand");
|
||||
int Val = (int) MI->getOperand (i + 1).getImmedValue ();
|
||||
O << ((Val >= 0) ? " + " : " - ");
|
||||
O << ((Val >= 0) ? Val : -Val);
|
||||
if (Val != 0) {
|
||||
O << ((Val >= 0) ? " + " : " - ");
|
||||
O << ((Val >= 0) ? Val : -Val);
|
||||
}
|
||||
O << "]";
|
||||
}
|
||||
|
||||
|
@ -452,8 +452,10 @@ void V8Printer::printBaseOffsetPair (const MachineInstr *MI, int i) {
|
||||
assert (MI->getOperand (i + 1).isImmediate()
|
||||
&& "2nd half of base-offset pair must be immediate-value machine operand");
|
||||
int Val = (int) MI->getOperand (i + 1).getImmedValue ();
|
||||
O << ((Val >= 0) ? " + " : " - ");
|
||||
O << ((Val >= 0) ? Val : -Val);
|
||||
if (Val != 0) {
|
||||
O << ((Val >= 0) ? " + " : " - ");
|
||||
O << ((Val >= 0) ? Val : -Val);
|
||||
}
|
||||
O << "]";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user