[llvm-commits] [llvm] r157685 - /llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed May 30 02:13:55 PDT 2012
Author: d0k
Date: Wed May 30 04:13:55 2012
New Revision: 157685
URL: http://llvm.org/viewvc/llvm-project?rev=157685&view=rev
Log:
Port support for SSE4a extrq/insertq to the old jit code emitter.
Modified:
llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
Modified: llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp?rev=157685&r1=157684&r2=157685&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp Wed May 30 04:13:55 2012
@@ -1433,7 +1433,7 @@
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) {
More information about the llvm-commits
mailing list