https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110459
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Thinking about this some more I think we should be able to handle this on the gimple level before expand. Let me see what we can be done here. It is related to https://gcc.gnu.org/pipermail/gcc-patches/2024-August/660968.html too.