[Bug tree-optimization/126693] Fold abs (x) * abs (y) -> abs (x * y)
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 11 08:58:15 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126693
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Venkataramanan Kumar
<vekumar@gcc.gnu.org>:
https://gcc.gnu.org/g:7c48d6a74693e1c64900f6aa203539ea1ca7b370
commit r17-3200-g7c48d6a74693e1c64900f6aa203539ea1ca7b370
Author: Dipesh Sharma <Dipesh.Sharma@amd.com>
Date: Sat Aug 8 20:39:17 2026 +0530
match.pd: Fold abs(x) * abs(y) -> abs(x * y) [PR126693]
gcc/ChangeLog:
PR tree-optimization/126693
* match.pd: Fold abs(x) * abs(y) into abs(x * y).
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/mult-abs-3.c: New test.
* gcc.dg/tree-ssa/mult-abs-4.c: New test.
* gcc.dg/tree-ssa/mult-abs-5.c: New test.
More information about the Gcc-bugs
mailing list