On Thu, Nov 20, 2025 at 09:33:50AM +0530, Dhruv Chawla wrote:
> Thanks, I have attached the updated patch.

>       PR tree-optimization/122733
> 
> gcc/ChangeLog:
> 
>       * match.pd ((y << x) {<,<=,>,>=} x): Remove.
>       ((y << x) {==,!=} x): Call constant_boolean_node instead of
>       build_one_cst/build_zero_cst and combine into one pattern.
> 
> gcc/testsuite/ChangeLog:
> 
>       * gcc.dg/match-shift-cmp-1.c: Update test to only check
>       equality.
>       * gcc.dg/match-shift-cmp-2.c: Likewise.
>       * gcc.dg/match-shift-cmp-3.c: Likewise.
>       * gcc.dg/match-shift-cmp-4.c: Removed.

LGTM.

        Jakub

Reply via email to