https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119723
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That commit to some extent restores the GCC 14 behavior. Arguably the [0x80000000ULL,0xffffffffULL] CONST_INTs better should have cost of COST_N_INSNS (1) but then we need to do something better for the unsigned vs. signed division costing, clearly GCC 16 material.