https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100855 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Might be interesting to see whether ifort does any expression simplification here. Can you share the produced assembly?