[X86][XOP] Support for VPPERM 2-input shuffle mask decoding
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 Apr 2016 14:51:26 +0000 (14:51 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 Apr 2016 14:51:26 +0000 (14:51 +0000)
commit1cc5712763e6af3aa1f181680a9359280e6adc14
tree8ffd32585e824cff6e3665a70b26bd9143dba0cd
parentb3410db2b7dfd9ccec9d782b74477a1d0a2febad
[X86][XOP] Support for VPPERM 2-input shuffle mask decoding

This patch adds support for decoding XOP VPPERM instruction when it represents a basic shuffle.

The mask decoding required the existing MCInstrLowering code to be updated to support binary shuffles - the implementation now matches what is done in X86InstrComments.cpp.

Differential Revision: http://reviews.llvm.org/D18441

llvm-svn: 265874
llvm/lib/Target/X86/X86MCInstLower.cpp
llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.h
llvm/test/CodeGen/X86/vector-shuffle-combining-xop.ll