https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103765
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jeremy R. from comment #0) > This would be a good enhancement, and I'd also be interested to learn why > this strange behavior is occurring. The reason for the difference is most likely because the transformation is located in fold-const.c and has not yet been moved to match.pd yet.