https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69615
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I suppose even that is doable in the reassoc framework, or it could be done in match.pd just using the recorded value ranges, like richi has handled PR69595, or both.