[CPU/PPC] Add VX128_2 VC field support for vperm128

Add 3-bit VC field to VX128_2 format structure to support
instructions like vperm128 that use 4 distinct vector operands.

The VC field occupies bits 6-8 of the instruction encoding.
This commit is contained in:
Herman S.
2025-10-19 13:56:23 +09:00
parent f4af1e2a77
commit 1548b4e11c
2 changed files with 5 additions and 2 deletions

View File

@@ -487,6 +487,7 @@ struct PPCDecodeData {
return bits_.VA128l | (bits_.VA128h << 5) | (bits_.VA128H << 6);
}
uint32_t VB() const { return bits_.VB128l | (bits_.VB128h << 5); }
uint32_t VC() const { return bits_.VC; }
private:
XE_MAYBE_UNUSED
@@ -498,7 +499,8 @@ struct PPCDecodeData {
uint32_t VD128h : 2;
uint32_t : 1;
uint32_t VA128h : 1;
uint32_t : 4;
uint32_t VC : 3;
uint32_t : 1;
uint32_t VA128H : 1;
uint32_t VB128l : 5;
uint32_t VA128l : 5;

View File

@@ -208,7 +208,8 @@ struct PPCOpcodeBits {
uint32_t VD128h : 2;
uint32_t : 1;
uint32_t VA128h : 1;
uint32_t : 4;
uint32_t VC : 3;
uint32_t : 1;
uint32_t VA128H : 1;
uint32_t VB128l : 5;
uint32_t VA128l : 5;