https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128748
--- Comment #3 from Zhiyang Chen <jeffchen006 at gmail dot com> --- (In reply to Richard Biener from comment #1) > Confirmed. I'd suggest to simply remove the folding(s) instead. Thanks, agreed. Only the ABS (X) <= C fold in fold_binary_loc is wrong. The two folds after it (ABS_EXPR <x> >= 0 -> true, ABS_EXPR <x> < 0 -> false) go through tree_expr_nonnegative_p and give the right result with -fwrapv for x = INT_MIN (checked).
