https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71488
--- Comment #8 from Ilya Enkovich <ienkovich at gcc dot gnu.org> --- Created attachment 38703 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38703&action=edit Enable masks comparison using patterns (In reply to rguent...@suse.de from comment #7) > > Sounds reasonable though less patterns are IMHO better (patterns should > be only used when combining N > 1 scalar stmts to M >= 1 new scalar stmts, > single scalar stmts can be handled in complex ways in the vectorizable_* > functions). This can be handled in vectorizable_comparison but it would make it much more complex and in fact it would mean a copy of a part of vectorizable_operation into vectorizable_comparison. I attach a pattern variant. I can also prepare vectorizable_comparison enhancement variant to compare and choose.