mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Statically encode bit 25 to indicate immediate form of data processing instructions. Patch by Sean Callanan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74972 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -528,7 +528,6 @@ void Emitter<CodeEmitter>::emitLEApcrelJTInstruction(const MachineInstr &MI) {
|
||||
Binary |= ARMRegisterInfo::getRegisterNumbering(ARM::PC) << ARMII::RegRnShift;
|
||||
|
||||
// Encode the displacement.
|
||||
// Set bit I(25) to identify this is the immediate form of <shifter_op>.
|
||||
Binary |= 1 << ARMII::I_BitShift;
|
||||
emitJumpTableAddress(MI.getOperand(1).getIndex(), ARM::reloc_arm_jt_base);
|
||||
|
||||
@@ -797,7 +796,6 @@ void Emitter<CodeEmitter>::emitDataProcessingInstruction(
|
||||
}
|
||||
|
||||
// Encode so_imm.
|
||||
// Set bit I(25) to identify this is the immediate form of <shifter_op>.
|
||||
Binary |= 1 << ARMII::I_BitShift;
|
||||
Binary |= getMachineSoImmOpValue(MO.getImm());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user