summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCJITInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-07 23:44:07 +0000
committerChris Lattner <sabre@nondot.org>2006-12-07 23:44:07 +0000
commiteb63b0a9d5089dd3119ba9c3cad9cf9ad79df0f7 (patch)
treecd5ef4ca577a083362a7510b3df0b720afcdd8b2 /lib/Target/PowerPC/PPCJITInfo.cpp
parent1a097e30d39e60303ae2b19f7a56e813f3e3c18e (diff)
downloadllvm-eb63b0a9d5089dd3119ba9c3cad9cf9ad79df0f7.tar.gz
llvm-eb63b0a9d5089dd3119ba9c3cad9cf9ad79df0f7.tar.bz2
llvm-eb63b0a9d5089dd3119ba9c3cad9cf9ad79df0f7.tar.xz
fix incorrect encoding of rldicr, used by ppc64 function stubs, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCJITInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCJITInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp
index 29fdd6a293..24a62fe230 100644
--- a/lib/Target/PowerPC/PPCJITInfo.cpp
+++ b/lib/Target/PowerPC/PPCJITInfo.cpp
@@ -30,7 +30,7 @@ static TargetJITInfo::JITCompilerFn JITCompilerFunction;
((25 << 26) | ((RS) << 21) | ((RD) << 16) | ((UIMM16) & 65535))
#define BUILD_RLDICR(RD,RS,SH,ME) \
((30 << 26) | ((RS) << 21) | ((RD) << 16) | (((SH) & 31) << 11) | \
- (((ME) & 63) << 6) | (1 << 3) | (((SH) >> 5) & 1))
+ (((ME) & 63) << 6) | (1 << 2) | ((((SH) >> 5) & 1) << 1))
#define BUILD_MTSPR(RS,SPR) \
((31 << 26) | ((RS) << 21) | ((SPR) << 16) | (467 << 1))
#define BUILD_BCCTRx(BO,BI,LINK) \