https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There is some code in cse.cc which does handle this. See https://gcc.gnu.org/onlinedocs/gccint/Misc.html#index-TARGET_005fCONST_005fANCHOR also.