https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95699
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- I'm inclined to close as WONTFIX or INVALID. There are several other PRs which show "surprising" behavior with respect to __builtin_constant_p and jump threading.