This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/71488] [6/7 Regression] Wrong code for vector comparisons with ivybridge and westmere targets
- From: "ienkovich at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Jun 2016 14:30:01 +0000
- Subject: [Bug middle-end/71488] [6/7 Regression] Wrong code for vector comparisons with ivybridge and westmere targets
- Auto-submitted: auto-generated
- References: <bug-71488-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71488
--- Comment #6 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
I think we should disable vectorization of boolean comparison (except '==' and
'!=') and handle them applying patterns. E.g. a > b ==> a & !b, a >= b ==> a |
!b etc. Bitwise operations are better because work for both vector and scalar
masks.