https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123585
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Roger Sayle <[email protected]>: https://gcc.gnu.org/g:73bf30c8c9fc8a2cfe4720160c3dfbf99b4b5f58 commit r16-6923-g73bf30c8c9fc8a2cfe4720160c3dfbf99b4b5f58 Author: Roger Sayle <[email protected]> Date: Tue Jan 20 14:07:55 2026 +0000 PR rtl-optimization/123585: ICE in vec_select simplification on x86_64. This patch is my proposed fix to PR rtl-optimization/123585, an ICE caused by some incorrect logic in a gcc_assert. 2026-01-20 Roger Sayle <[email protected]> gcc/ChangeLog PR rtl-optimization/123585 * simplify-rtx.cc (simplify_context::simplify_binary_operation_1) <case VEC_SELECT>: Correct gcc_assert when optimizing a vec_select of a vec_select with differing vector lengths. gcc/testsuite/ChangeLog PR rtl-optimization/123585 * gcc.target/i386/pr123585.c: New test case.
