From 11fa8a91e762a4c6d84ba542d53f2b4c89c7cb99 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 30 May 2012 09:13:55 +0000 Subject: [PATCH] Port support for SSE4a extrq/insertq to the old jit code emitter. llvm-svn: 157685 --- lib/Target/X86/X86CodeEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index 40fe395092f..d84329f33a3 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -1433,7 +1433,7 @@ void Emitter::emitInstruction(MachineInstr &MI, break; } - if (CurOp != NumOps) { + while (CurOp != NumOps && NumOps - CurOp <= 2) { // The last source register of a 4 operand instruction in AVX is encoded // in bits[7:4] of a immediate byte. if ((TSFlags >> X86II::VEXShift) & X86II::VEX_I8IMM) {