https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124848
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> --- Note the gimple level produced is: ``` _1 = x_3(D) != 0; _2 = (int) _1; _4 = x_3(D) - _2; ``` I wonder if this could just be _t = (unsigned) x_3(D); _4 = SAT_SUB(_t, 1) Which is what LLVM does internally (though they also mess up at the expansion of the saturated subtract here).
