[X86] Add tests for cmp-zero + and/trunc + or-reduction patterns
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 30 Jun 2020 11:37:55 +0000 (12:37 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 30 Jun 2020 11:51:38 +0000 (12:51 +0100)
commit0f8ca20b3e069baa715696d928bcfb1a96fe3a3a
tree02937980c5ac0e1a3aa0201dddae8b19fbd20a69
parentc37d25f0d1e059b39fbbc1ccc9f52ddba42be6b9
[X86] Add tests for cmp-zero + and/trunc + or-reduction patterns

Expanding off the original PR44781 test case, show the failure to fold cmp-all-zero patterns when a demanded bits limiting and/trunc is in the way.
llvm/test/CodeGen/X86/vector-reduce-or-cmp.ll