https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117927
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- And if you go the masking way, it should be single use on the subtraction (or addition), otherwise it isn't a win from GIMPLE IL POV (trading 2 statements for 3).