Re: [PATCH v2] match.pd: Add pattern to simplify `(a - 1) & -a` to `0`

2024-11-30 Thread Jeff Law
On 11/26/24 3:49 AM, Jovan Vukic wrote: Thank you for the feedback on the v1 patch. As requested, I added detailed tests for various signed and unsigned integer types in the test file bitops-11.c. I also included more complex expressions to observe how everything behaves at the GIMPLE level a

[PATCH v2] match.pd: Add pattern to simplify `(a - 1) & -a` to `0`

2024-11-26 Thread Jovan Vukic
Thank you for the feedback on the v1 patch. As requested, I added detailed tests for various signed and unsigned integer types in the test file bitops-11.c. I also included more complex expressions to observe how everything behaves at the GIMPLE level and added vector test examples as well. Since