Since vectors with all ones can't be created with a 256-bit instruction,
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 1 Aug 2011 19:51:53 +0000 (19:51 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 1 Aug 2011 19:51:53 +0000 (19:51 +0000)
commit531f19f7677b2e0ab20caaa36c539d398c7b4aea
treec14c6490c8b6baa6345e65b2702e9bdaeda87c50
parent8ead80db20ec05fd8e613084abfdb8714703fc5f
Since vectors with all ones can't be created with a 256-bit instruction,
avoid returning early for v8i32 types, which would only be valid for
vector with all zeros. Also split the handling of zeros and ones into separate
checking logic since they are handled differently. This fixes PR10547

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