delena added a comment. > You should be able to implement this like PSHUFB is handled in X86AsmPrinter::EmitInstruction. PSHUFBrm form loads mask from memory. The VPERMV and VPERMV3 sets both take mask from register. Unlike PSHUFB, they both take source operand from memory. http://reviews.llvm.org/D10683