mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Put the PC encoding in the correct bit position.
llvm-svn: 118151
This commit is contained in:
parent
bc79fa1c9e
commit
3894287c96
@ -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