s390: Add instructions for load-and-clear indexed access
New s390 instruction patterns for load-and-clear indexed memory access are added.
This commit introduces new instruction patterns for the s390 architecture: lxab_displacement_index and llxab_displacement_index. These patterns enable the compiler to generate code for load-and-clear operations with indexed addressing modes. New test cases are included to verify the functionality.
In Details
This patch adds two new patterns to config/s390/s390.md: lxab_displacement_index and llxab_displacement_index. These patterns correspond to the s390 architecture's load-and-clear instructions with displacement and index addressing. The inclusion of these patterns allows the compiler to better utilize s390's instruction set for memory operations involving clearing memory after a load using indexed access.
- s390
- IBM's 31-bit and 64-bit mainframe computer architecture.
- instruction pattern
- A template used by a compiler's backend to match a specific operation or sequence of operations and generate corresponding machine code instructions for a target architecture.
- load-and-clear
- A memory operation that reads data from a memory location and then writes a zero (or other default value) to that same location.
- indexed addressing
- A memory addressing mode where the effective address is calculated by adding an index register's value to a base address or displacement.