https://github.com/dtcxzyw commented: Can you please provide a generalized proof for both signed and unsigned cases? See also https://llvm.org/docs/InstCombineContributorGuide.html#use-generic-values-in-proofs. https://github.com/llvm/llvm-project/pull/161303