Add xvrlw instruction support to PowerPC future target
GCC supports a new PowerPC vector rotate left instruction (xvrlw) for future processors.
This commit introduces support for the xvrlw instruction, a potential future addition to the PowerPC architecture. This instruction enhances vector rotation capabilities by allowing any VSX register to be used, unlike the current xvrlw which is limited to Altivec registers. The change enables this new instruction for PowerPC targets marked as ‘future’.
In Details
This commit adds support for the xvrlw instruction to the rs6000 backend, intended for a future PowerPC ISA. It introduces the TARGET_XVRLW macro in rs6000.h and a new instruction pattern xvrlw in altivec.md. This instruction offers flexibility by allowing any VSX register, unlike its predecessor which was restricted to Altivec registers. A new test case vector-rotate-left.c is included.
- xvrlw
- A potential new PowerPC instruction for performing a vector rotate left operation. This version supports using any VSX register.
- VSX
- Vector-Scalar Extension. An extension to the PowerPC architecture that provides powerful SIMD capabilities, including a larger set of vector registers and instructions.
- Altivec
- An earlier SIMD extension for PowerPC processors, also known as AltiVec or VMX. It provided a set of vector processing instructions.
- PowerPC
- A RISC instruction set architecture developed by Apple, IBM, and Motorola. It's used in various embedded systems, servers, and historically in Apple Macintosh computers.