mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-06 02:26:30 +00:00
ir: Add opcodes for performing vector deinterleaving
This commit is contained in:
@@ -794,6 +794,36 @@ U128 IREmitter::VectorBroadcast(size_t esize, const UAny& a) {
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorDeinterleaveEven(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 8:
|
||||
return Inst<U128>(Opcode::VectorDeinterleaveEven8, a, b);
|
||||
case 16:
|
||||
return Inst<U128>(Opcode::VectorDeinterleaveEven16, a, b);
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::VectorDeinterleaveEven32, a, b);
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::VectorDeinterleaveEven64, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorDeinterleaveOdd(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 8:
|
||||
return Inst<U128>(Opcode::VectorDeinterleaveOdd8, a, b);
|
||||
case 16:
|
||||
return Inst<U128>(Opcode::VectorDeinterleaveOdd16, a, b);
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::VectorDeinterleaveOdd32, a, b);
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::VectorDeinterleaveOdd64, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorEor(const U128& a, const U128& b) {
|
||||
return Inst<U128>(Opcode::VectorEor, a, b);
|
||||
}
|
||||
|
||||
@@ -197,6 +197,8 @@ public:
|
||||
U128 VectorBroadcast(size_t esize, const UAny& a);
|
||||
U128 VectorBroadcastLower(size_t esize, const UAny& a);
|
||||
U128 VectorEor(const U128& a, const U128& b);
|
||||
U128 VectorDeinterleaveEven(size_t esize, const U128& a, const U128& b);
|
||||
U128 VectorDeinterleaveOdd(size_t esize, const U128& a, const U128& b);
|
||||
U128 VectorEqual(size_t esize, const U128& a, const U128& b);
|
||||
U128 VectorExtract(const U128& a, const U128& b, size_t position);
|
||||
U128 VectorExtractLower(const U128& a, const U128& b, size_t position);
|
||||
|
||||
@@ -231,6 +231,14 @@ OPCODE(VectorBroadcast8, T::U128, T::U8
|
||||
OPCODE(VectorBroadcast16, T::U128, T::U16 )
|
||||
OPCODE(VectorBroadcast32, T::U128, T::U32 )
|
||||
OPCODE(VectorBroadcast64, T::U128, T::U64 )
|
||||
OPCODE(VectorDeinterleaveEven8, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorDeinterleaveEven16, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorDeinterleaveEven32, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorDeinterleaveEven64, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorDeinterleaveOdd8, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorDeinterleaveOdd16, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorDeinterleaveOdd32, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorDeinterleaveOdd64, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorEor, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorEqual8, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorEqual16, T::U128, T::U128, T::U128 )
|
||||
|
||||
Reference in New Issue
Block a user