X86: When emulating unsigned PCMPGTQ with PCMPGTD, fix the sign bit for the smaller...
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 21 May 2013 09:58:54 +0000 (09:58 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 21 May 2013 09:58:54 +0000 (09:58 +0000)
commitf106d8bad6ba3759e512e1a1e6cc09ce832bd74e
tree24e57a132dba22972e3255754d6863022d7c0ab5
parentaf2a1bebfcef3e3767ef3875957c986e087dd0e8
X86: When emulating unsigned PCMPGTQ with PCMPGTD, fix the sign bit for the smaller type.

Otherwise we'll get a mix of signed and unsigned compares.
Fixes PR15977.

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