https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105368
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:f0e170f72f8bfaa2a64e1d09ebdfd48f917420f1 commit r12-8242-gf0e170f72f8bfaa2a64e1d09ebdfd48f917420f1 Author: Richard Biener <rguent...@suse.de> Date: Mon Apr 25 10:55:21 2022 +0200 tree-optimization/105368 - avoid overflow in powi_cost The following avoids undefined signed overflow when computing the absolute of the exponent in powi_cost. 2022-04-25 Richard Biener <rguent...@suse.de> PR tree-optimization/105368 * tree-ssa-math-opts.cc (powi_cost): Use absu_hwi.