[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)
commite206385e99c4ca9a70c8da297ff7643e2cfe06d2
tree62075db3260bc62b06cc790a13964411864f1c6f
parent3051f9761ef43877ec3017d955999e07cb0b09ac
[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.

llvm-svn: 215094
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-shuffle-128-v8.ll