[X86] Fix a regression introduced by r223641.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 12 Mar 2015 19:34:12 +0000 (19:34 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 12 Mar 2015 19:34:12 +0000 (19:34 +0000)
commitbe45e0e6696d73f45c2dbd9c2a4ba8b422de08ad
treeaa7fcfe9130d2ce05d921a4c8aeb01bf9f6409ef
parent63a0e366a1bb935db7ff7a1609704ca8df76a1a1
[X86] Fix a regression introduced by r223641.
The permps and permd instructions have their operands swapped compared to the
intrinsic definition. Therefore, they do not fall into the INTR_TYPE_2OP
category.

I did not create a new category for those two, as they are the only one AFAICT
in that case.

<rdar://problem/20108262>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232085 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86IntrinsicsInfo.h
test/CodeGen/X86/avx2-intrinsics-x86.ll
test/CodeGen/X86/stack-folding-int-avx2.ll