mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 20:26:31 +00:00
Print negative immediates as negative values instead of large constants
when using the immshifted addressing mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0228c0fc8d
commit
45c04fc676
@ -125,7 +125,7 @@ namespace {
|
|||||||
O << (unsigned short)MI->getOperand(OpNo).getImmedValue();
|
O << (unsigned short)MI->getOperand(OpNo).getImmedValue();
|
||||||
}
|
}
|
||||||
void printS16X4ImmOperand(const MachineInstr *MI, unsigned OpNo) {
|
void printS16X4ImmOperand(const MachineInstr *MI, unsigned OpNo) {
|
||||||
O << (short)MI->getOperand(OpNo).getImmedValue()*4;
|
O << (short)(MI->getOperand(OpNo).getImmedValue()*4);
|
||||||
}
|
}
|
||||||
void printBranchOperand(const MachineInstr *MI, unsigned OpNo) {
|
void printBranchOperand(const MachineInstr *MI, unsigned OpNo) {
|
||||||
// Branches can take an immediate operand. This is used by the branch
|
// Branches can take an immediate operand. This is used by the branch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user