aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-12 23:24:02 +0000
committerChris Lattner <sabre@nondot.org>2006-07-12 23:24:02 +0000
commit45c04fc676027c2db5e20939c487dea54b3db151 (patch)
tree58d45b8281243385411733a64aa196aedd4374aa /lib/Target/PowerPC
parent0228c0fc8d545b4b49b8c1d2dd455af6758612e2 (diff)
downloadexternal_llvm-45c04fc676027c2db5e20939c487dea54b3db151.zip
external_llvm-45c04fc676027c2db5e20939c487dea54b3db151.tar.gz
external_llvm-45c04fc676027c2db5e20939c487dea54b3db151.tar.bz2
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
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index bb00843..40cbd93 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -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