On Wed, Nov 10, 2021 at 12:50:09PM +, Richard Sandiford via Gcc-patches
wrote:
> gcc/
> * internal-fn.c (first_commutative_operand): Handle IFN_ADD_OVERFLOW
> and IFN_MUL_OVERFLOW.
>
> gcc/testsuite/
> * gcc.dg/add-mul-overflow-1.c: New test.
Ok.
Jakub
Mark IFN_ADD/MUL_OVERFLOW as commutative.
Tested on aarch64-linux-gnu and x86_64-linux-gnu. OK to install?
Richard
gcc/
* internal-fn.c (first_commutative_operand): Handle IFN_ADD_OVERFLOW
and IFN_MUL_OVERFLOW.
gcc/testsuite/
* gcc.dg/add-mul-overflow-1.c: New test.
--