Fix PR12359
authorMichael Liao <michael.liao@intel.com>
Fri, 31 Aug 2012 20:12:31 +0000 (20:12 +0000)
committerMichael Liao <michael.liao@intel.com>
Fri, 31 Aug 2012 20:12:31 +0000 (20:12 +0000)
commit265bcb1e5b106a7c5db2bfcfb13cceffe0c413be
tree4b71ac71eae05fb78c0c2225f0dc2e843c84bd53
parent3185f9a2ea80afec30064b7cd095f82c31dc154e
Fix PR12359

- In addition to undefined, if V2 is zero vector, skip 2nd PSHUFB and POR as
  well as PSHUFB will zero elements with negative indices.

  Patch by Sriram Murali <sriram.murali@intel.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163018 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/pr12359.ll [new file with mode: 0644]