[x86] Fix another miscompile in the new vector shuffle lowering found
authorChandler Carruth <chandlerc@gmail.com>
Thu, 7 Aug 2014 10:14:27 +0000 (10:14 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 7 Aug 2014 10:14:27 +0000 (10:14 +0000)
commit0651861b7b84f84865a652c4963db1a2c9671d9d
treefc3be306884bd0d11c9d804d0ebc95b75c7f9da4
parentb3364512fc78d9795a25cad99fe208a8122a03d2
[x86] Fix another miscompile in the new vector shuffle lowering found
via the fuzz tester.

Here I missed an offset when round-tripping a value through a shuffle
mask. I got it right 2 lines below. See a problem? I do. ;] I'll
probably be adding a little "swap" algorithm which accepts a range and
two values and swaps those values where they occur in the range. Don't
really have a name for it, let me know if you do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215094 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-shuffle-128-v8.ll