[X86] Don't assume that MMX extractelts are from index 0.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 01:35:29 +0000 (01:35 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 01:35:29 +0000 (01:35 +0000)
commit19a2ee591a1249d1d4b9657bf5f2089ec2ad2fa1
tree9786ad88a079b154e10277e04b739b597b54a56a
parente68363a03ca541a55d67be1da05fea8a5a3c54af
[X86] Don't assume that MMX extractelts are from index 0.

It's probably the case for all 3 MMX users out there, but with
hand-crafted IR, you can trigger selection failures. Fix that.

llvm-svn: 267652
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vec_extract-mmx.ll