From: Eric Christopher Date: Sat, 7 May 2011 04:37:27 +0000 (+0000) Subject: Fix the non-MC encoding of pkhbt and pkhtb. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=33c110e602bbdfee23cfb58fddef246a262647ab;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index fa7371626f2..d0c0e952512 100644 --- a/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/lib/Target/ARM/ARMCodeEmitter.cpp @@ -1372,6 +1372,12 @@ void ARMCodeEmitter::emitMiscArithInstruction(const MachineInstr &MI) { // Set the conditional execution predicate 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; // Encode Rd