Introduce __dmr2048 type for SHA3 instructions on PowerPC.
A new 256-byte opaque type `__dmr2048` is added for PowerPC SHA3 builtins.
This commit introduces a new GCC mode QDOmode representing a 256-byte opaque data type named __dmr2048. This type is necessary for the SHA3 builtins on the PowerPC architecture, as these instructions operate on pairs of dense math registers. The patch defines the mode, maps it to register pairs, implements patterns for moving this data, and integrates it into the compiler’s type system and built-in handling.
In Details
The rs6000 backend introduces QDOmode to represent a 2048-bit (256-byte) data type, aliased as __dmr2048. This mode is essential for the __builtin_dmsha3hash family of builtins which utilize dense math registers. The patch defines QDOmode in rs6000-modes.def, adds associated type mangling and register handling in rs6000.cc, and implements movqdo expander and split patterns in mma.md to manage these large register moves, particularly after the reload pass.
- QDOmode
- A new mode defined for the RS6000 backend, representing a 256-byte opaque data type used for specific cryptographic instructions.
- dense math registers
- Specialized registers on some PowerPC processors used for high-performance mathematical and cryptographic operations.
- reload pass
- A stage in the GCC compilation pipeline where virtual registers are replaced with physical machine registers.