https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98766
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Kyrylo Tkachov <ktkac...@gcc.gnu.org>: https://gcc.gnu.org/g:9d33785f57daf29dc0c106c919da319fe1906bc6 commit r11-6861-g9d33785f57daf29dc0c106c919da319fe1906bc6 Author: Kyrylo Tkachov <kyrylo.tkac...@arm.com> Date: Thu Jan 21 16:33:49 2021 +0000 tree-ssa-mathopts: Use proper poly_int64 comparison with param_avoid_fma_max_bits [PR 98766] We ICE here because we end up comparing a poly_int64 with a scalar using <= rather than maybe_le. This patch fixes that in the way rich suggests in the PR. gcc/ChangeLog: PR tree-optimization/98766 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when comparing against type size with param_avoid_fma_max_bits. gcc/testsuite/ChangeLog: PR tree-optimization/98766 * gcc.dg/pr98766.c: New test.