mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 14:12:11 +00:00
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
This commit is contained in:
parent
000cf708ef
commit
cdbbec43a8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user