https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97701
--- Comment #3 from Alex Coplan <acoplan at gcc dot gnu.org> --- A bisect in the other direction shows that Jakub's r11-4717-g3e190757f: commit 3e190757fa332d327bee27495f37beb01155cfab Author: Jakub Jelinek <ja...@redhat.com> Date: Wed Nov 4 10:55:29 2020 phiopt: Optimize x ? 1024 : 0 to (int) x << 10 [PR97690] fixes (or perhaps just obscures) this on the trunk.