[Bug tree-optimization/119568] [13/14/15/16 Regression] [avr] ICE: in find_widening_optab_handler_and_mode, at optabs-query.cc:498
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 4 12:33:13 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119568
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:
https://gcc.gnu.org/g:4ef3d71a08aa167a5b73bc073cdfb1a6784e5de7
commit r16-7894-g4ef3d71a08aa167a5b73bc073cdfb1a6784e5de7
Author: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Date: Tue Mar 3 13:57:47 2026 -0800
widen mult: Fix handling of _Fract mixed with _Fract [PR119568]
The problem here is we try calling find_widening_optab_handler_and_mode
with to_mode=E_USAmode and from_mode=E_UHQmode. This causes an ICE (with
checking only).
The fix is to reject the case where the mode classes are different in
convert_plusminus_to_widen
before even trying to deal with the modes.
Bootstrapped and tested on x86_64-linux-gnu.
PR tree-optimization/119568
gcc/ChangeLog:
* tree-ssa-math-opts.cc (convert_plusminus_to_widen): Reject
different
mode classes.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
More information about the Gcc-bugs
mailing list