fix incorrect encoding of rldicr, used by ppc64 function stubs, etc.
authorChris Lattner <sabre@nondot.org>
Thu, 7 Dec 2006 23:44:07 +0000 (23:44 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Dec 2006 23:44:07 +0000 (23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32341 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCJITInfo.cpp

index 29fdd6a2930460d36564eaea186b66eca9384874..24a62fe2304268aeaa43d4b77a6eb7102810b44b 100644 (file)
@@ -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) \