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 | 6552a109bba59215ac155efc7a600d1e928d2a25 (patch) | |
| tree | d9c4c02919121ad39d177f42857901a7657e7978 /llvm/lib/Target/ARM | |
| parent | b2cbd85be8d6ff8036211f2264336f10ba24a859 (diff) | |
| download | bcm5719-llvm-6552a109bba59215ac155efc7a600d1e928d2a25.tar.gz bcm5719-llvm-6552a109bba59215ac155efc7a600d1e928d2a25.zip | |
Put the PC encoding in the correct bit position.
llvm-svn: 118151
Diffstat (limited to 'llvm/lib/Target/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp b/llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp index fcdc02e677b..62ec8bf5cf0 100644 --- a/llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp +++ b/llvm/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. |

