mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-07 02:42:58 +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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user