https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124108
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:1b8bbe4a3da10213a204d6f5aaab9807a4193102 commit r16-7590-g1b8bbe4a3da10213a204d6f5aaab9807a4193102 Author: jlaw <[email protected]> Date: Thu Feb 19 07:04:27 2026 -0700 [PR tree-optimization/124108] Verify type_has_mode_precision before reassociating expressions As Andrew noted in pr124108, the two patterns that reassociate expressions to expose a rotate hidden by an embedded XOR need to check type_has_mode_precision_p to avoid an ICE during gimple->RTL expansion. This adds the necessary checks. Bootstrapped and regression tested on x86. PR tree-optimization/124108 gcc/ * match.pd (reassociating XOR to expose rotations): Check type_has_mode_precision_p before simplifying. gcc/testsuite/ * gcc.dg/torture/pr124108.c: New test.
