mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-08 00:12:57 +00:00
IR: Implement VectorMultiply
This commit is contained in:
@@ -913,6 +913,21 @@ U128 IREmitter::VectorLogicalShiftRight(size_t esize, const U128& a, u8 shift_am
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorMultiply(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 8:
|
||||
return Inst<U128>(Opcode::VectorMultiply8, a, b);
|
||||
case 16:
|
||||
return Inst<U128>(Opcode::VectorMultiply16, a, b);
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::VectorMultiply32, a, b);
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::VectorMultiply64, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::VectorNarrow(size_t original_esize, const U128& a) {
|
||||
switch (original_esize) {
|
||||
case 16:
|
||||
|
||||
@@ -217,6 +217,7 @@ public:
|
||||
U128 VectorInterleaveLower(size_t esize, const U128& a, const U128& b);
|
||||
U128 VectorLogicalShiftLeft(size_t esize, const U128& a, u8 shift_amount);
|
||||
U128 VectorLogicalShiftRight(size_t esize, const U128& a, u8 shift_amount);
|
||||
U128 VectorMultiply(size_t esize, const U128& a, const U128& b);
|
||||
U128 VectorNarrow(size_t original_esize, const U128& a);
|
||||
U128 VectorNot(const U128& a);
|
||||
U128 VectorOr(const U128& a, const U128& b);
|
||||
|
||||
@@ -232,6 +232,10 @@ OPCODE(VectorLogicalShiftRight8, T::U128, T::U128, T::U8
|
||||
OPCODE(VectorLogicalShiftRight16, T::U128, T::U128, T::U8 )
|
||||
OPCODE(VectorLogicalShiftRight32, T::U128, T::U128, T::U8 )
|
||||
OPCODE(VectorLogicalShiftRight64, T::U128, T::U128, T::U8 )
|
||||
OPCODE(VectorMultiply8, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorMultiply16, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorMultiply32, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorMultiply64, T::U128, T::U128, T::U128 )
|
||||
OPCODE(VectorNarrow16, T::U128, T::U128 )
|
||||
OPCODE(VectorNarrow32, T::U128, T::U128 )
|
||||
OPCODE(VectorNarrow64, T::U128, T::U128 )
|
||||
|
||||
Reference in New Issue
Block a user