https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78057
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 39863 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39863&action=edit gcc7-i386-fold.patch And incremental patch to add a bunch of BMI/BMI2/TBM intrinsics folding.