mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
fix a regression that I introduced. stdu should scale the offset by 4
before printing it. llvm-svn: 31791
This commit is contained in:
parent
c653e70b2d
commit
5dcf43138d
@ -127,7 +127,16 @@ namespace {
|
||||
O << (unsigned short)MI->getOperand(OpNo).getImmedValue();
|
||||
}
|
||||
void printS16X4ImmOperand(const MachineInstr *MI, unsigned OpNo) {
|
||||
O << (short)(MI->getOperand(OpNo).getImmedValue()*4);
|
||||
if (MI->getOperand(OpNo).isImmediate()) {
|
||||
O << (short)(MI->getOperand(OpNo).getImmedValue()*4);
|
||||
} else {
|
||||
O << "lo16(";
|
||||
printOp(MI->getOperand(OpNo));
|
||||
if (TM.getRelocationModel() == Reloc::PIC_)
|
||||
O << "-\"L" << getFunctionNumber() << "$pb\")";
|
||||
else
|
||||
O << ')';
|
||||
}
|
||||
}
|
||||
void printBranchOperand(const MachineInstr *MI, unsigned OpNo) {
|
||||
// Branches can take an immediate operand. This is used by the branch
|
||||
|
@ -413,7 +413,7 @@ def STWU8 : DForm_1<37, (ops ptr_rc:$ea_res, G8RC:$rS,
|
||||
|
||||
|
||||
def STDU : DSForm_1<62, 1, (ops ptr_rc:$ea_res, G8RC:$rS,
|
||||
symbolLo:$ptroff, ptr_rc:$ptrreg),
|
||||
s16immX4:$ptroff, ptr_rc:$ptrreg),
|
||||
"stdu $rS, $ptroff($ptrreg)", LdStSTD,
|
||||
[(set ptr_rc:$ea_res, (pre_store G8RC:$rS, ptr_rc:$ptrreg,
|
||||
iaddroff:$ptroff))]>,
|
||||
|
Loading…
Reference in New Issue
Block a user