Mark IFN_UBSAN_CHECK_ADD/MUL as commutative
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Nov 2021 09:52:26 +0000 (09:52 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Nov 2021 09:52:26 +0000 (09:52 +0000)
commit12e38012786d18b21ecb85c5d13b532281206270
treed8fb3e9204f266d7c97283d6af727194a25a8767
parent71207246b02b33c1ceb169db54fddaa5c5c31824
Mark IFN_UBSAN_CHECK_ADD/MUL as commutative

gcc/
* internal-fn.c (commutative_binary_fn_p): Handle IFN_UBSAN_CHECK_ADD
and IFN_UBSAN_CHECK_MUL.

gcc/testsuite/
* gcc.dg/ubsan/commutative-1.c: New test.
gcc/internal-fn.c
gcc/testsuite/gcc.dg/ubsan/commutative-1.c [new file with mode: 0644]