[Bug rtl-optimization/123294] [14/15 Regression] ICE at -O1 during RTL pass: ce2
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 13 05:05:20 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123294
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Andrew Pinski
<pinskia@gcc.gnu.org>:
https://gcc.gnu.org/g:1fbe552f9235d66499ad6a2a24ac6c642bb6ba59
commit r15-10940-g1fbe552f9235d66499ad6a2a24ac6c642bb6ba59
Author: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Date: Sun Feb 1 15:41:52 2026 -0800
ifcvt: Fix store flag of XImode on aarch64 while ifcvt [PR123294]
In the testcase ifcvt is trying to do a emit_store_flag into a XImode.
That will cause an ICE because XImode does not have any arithmetic optabs
associated with it. This is because it is greater than MAX_FIXED_MODE_SIZE
(along other things).
noce_emit_store_flag already has code to reject non-scalar modes, so
this adds a new check for modes that are greater than MAX_FIXED_MODE_SIZE.
Bootstrapped and tested on aarch64-linux-gnu.
PR rtl-optimization/123294
gcc/ChangeLog:
* ifcvt.cc (noce_emit_store_flag): Reject modes
greater than MAX_FIXED_MODE_SIZE.
gcc/testsuite/ChangeLog:
* gcc.dg/pr123294-1.c: New test.
* gcc.target/aarch64/pr123294-1.c: New test.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
(cherry picked from commit e02eba0dc7d1aa62c5edf7108e641bcb5c5584b8)
More information about the Gcc-bugs
mailing list