https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128762
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:4528bf93ee7362cc5dba0ab973de1ef38571a2e1 commit r17-6684-g4528bf93ee7362cc5dba0ab973de1ef38571a2e1 Author: Jakub Jelinek <[email protected]> Date: Wed Nov 25 13:04:33 2026 +0100 aarch64: Fix ICE on TImode comparison of a SUBREG [PR128762] The following testcase ICEs, because aarch64_gen_compare_reg for TImode uses operand_subword to get the two halves of each operand. If one or both operands are SUBREGs, especially the second calls to operand_subword, the one asking for the high half, can just return NULL_RTX because they try to simplify_gen_subreg and SUBREGs of SUBREGs aren't supported. The following patch fixes it by using force_{low,high}part_subreg instead of operand_subword. 2026-11-25 Jakub Jelinek <[email protected]> Tamar Christina <[email protected]> PR target/128762 * config/aarch64/aarch64.cc (aarch64_gen_compare_reg): Use force_lowpart_subreg/force_highpart_subreg instead of operand_subword. * gcc.dg/pr128762.c: New test. Reviewed-by: Tamar Christina <[email protected]> Reviewed-by: Kyrylo Tkachov <[email protected]>
