diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-11-03 04:57:44 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-11-03 04:57:44 +0000 |
commit | cdbbec43a837532d6a19e95320361c4b7c215a02 (patch) | |
tree | c8b9a6696a750a0c2c1e13373f4e4bac42aec26d | |
parent | 000cf708effc247ff1e609d0703324b21585a4af (diff) |
Put the PC encoding in the correct bit position.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118151 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMMCCodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMMCCodeEmitter.cpp b/lib/Target/ARM/ARMMCCodeEmitter.cpp index fcdc02e677..62ec8bf5cf 100644 --- a/lib/Target/ARM/ARMMCCodeEmitter.cpp +++ b/lib/Target/ARM/ARMMCCodeEmitter.cpp @@ -240,7 +240,7 @@ uint32_t ARMMCCodeEmitter::getAddrMode5OpValue(const MCInst &MI, EncodeAddrModeOpValues(MI, OpIdx, Reg, Imm8); if (Reg == ARM::PC) - return ARM::PC << 13; // Rn is PC; + return ARM::PC << 9; // Rn is PC; uint32_t Binary = ARM_AM::getAM5Offset(Imm8); // Immediate is always encoded as positive. The 'U' bit controls add vs sub. |