mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Fix the non-MC encoding of pkhbt and pkhtb.
Patch by Stephen Hines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131045 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1372,6 +1372,12 @@ void ARMCodeEmitter::emitMiscArithInstruction(const MachineInstr &MI) {
|
|||||||
// Set the conditional execution predicate
|
// Set the conditional execution predicate
|
||||||
Binary |= II->getPredicate(&MI) << ARMII::CondShift;
|
Binary |= II->getPredicate(&MI) << ARMII::CondShift;
|
||||||
|
|
||||||
|
// PKH instructions are finished at this point
|
||||||
|
if (TID.Opcode == ARM::PKHBT || TID.Opcode == ARM::PKHTB) {
|
||||||
|
emitWordLE(Binary);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned OpIdx = 0;
|
unsigned OpIdx = 0;
|
||||||
|
|
||||||
// Encode Rd
|
// Encode Rd
|
||||||
|
Reference in New Issue
Block a user