mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00:00
Print negative immediates as negative values instead of large constants
when using the immshifted addressing mode. llvm-svn: 29130
This commit is contained in:
parent
803c609c77
commit
753e4f5984
@ -125,7 +125,7 @@ namespace {
|
||||
O << (unsigned short)MI->getOperand(OpNo).getImmedValue();
|
||||
}
|
||||
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) {
|
||||
// Branches can take an immediate operand. This is used by the branch
|
||||
|
Loading…
Reference in New Issue
Block a user