]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-optimization/117611 - ICE in simplify_shift_const_1
authorRichard Biener <rguenther@suse.de>
Mon, 3 Feb 2025 14:27:30 +0000 (15:27 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 4 Feb 2025 07:34:48 +0000 (08:34 +0100)
commit5b46c01c50662a1c730e6658ea4307d4f80da578
treed5da17b2aa8cbb7b782dd476ecd0bf382d53d373
parenta55e14b239181381204c615335929b3316d75370
rtl-optimization/117611 - ICE in simplify_shift_const_1

The following checks we have a scalar int shift mode before
enforcing it.  As AVR shows the mode can be a signed _Accum mode
as well.

PR rtl-optimization/117611
* combine.cc (simplify_shift_const_1): Bail if not
scalar int mode.

* gcc.dg/fixed-point/pr117611.c: New testcase.
gcc/combine.cc
gcc/testsuite/gcc.dg/fixed-point/pr117611.c [new file with mode: 0644]