https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93505
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 47740 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47740&action=edit gcc10-pr93505.patch Untested combiner fix. IMHO even when we fix expand_binop we want it anyway, because we don't want to invoke UB in the compiler, even on UB in the testcase.