aarch64: Fix gen_highpart on subregs for TImode patterns
Resolves ICEs in AArch64 TImode patterns when using subregisters.
This commit addresses issues in the AArch64 backend where Intelligent Code Generation (ICE) errors occurred during the expansion of TImode patterns when subregisters were involved. Following a previous fix, additional cases were identified and resolved by ensuring that gen_highpart is not called on subregisters and by enforcing pure_register_operand constraints on destinations and operands in relevant TI mode operations.
In Details
This patch fixes ICEs reported in AArch64 TImode patterns when subregisters are used, building upon a prior fix (r17-4565). The modifications to config/aarch64/aarch64.md ensure that gen_highpart is not invoked on subregs and enforce pure_register_operand constraints for destinations in movti, addti3, addvti4, uaddvti4, subti3, subvti4, usubti4, mulditi3, and all operands in multi3. This resolves remaining issues with TImode handling involving subregisters.
- ICE
- Internal Compiler Error. An unexpected condition encountered by the compiler during the compilation process, usually indicating a bug in the compiler itself.
- TImode
- A GCC internal mode representing a two-word integer type, typically 128 bits on 64-bit architectures.
- subreg
- A component of a larger register. For example, the lower 32 bits of a 64-bit register can be treated as a subregister.
- gen_highpart
- A GCC internal function or macro used to extract the high-order part of a multi-word machine mode operand.
- pure_register_operand
- A constraint in GCC's machine description that specifies an operand must be a register that is not a subregister or involved in complex addressing modes.