mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-04 05:34:42 +01:00
ir: Add opcode for performing FP vector absolute differences
This commit is contained in:
parent
ba84e7a8de
commit
8a4f8aed06
4 changed files with 36 additions and 0 deletions
|
|
@ -1491,6 +1491,17 @@ U64 IREmitter::FPU32ToDouble(const U32& a, bool round_to_nearest, bool fpscr_con
|
|||
return Inst<U64>(Opcode::FPU32ToDouble, a, Imm1(round_to_nearest));
|
||||
}
|
||||
|
||||
U128 IREmitter::FPVectorAbsoluteDifference(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::FPVectorAbsoluteDifference32, a, b);
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::FPVectorAbsoluteDifference64, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
U128 IREmitter::FPVectorAdd(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 32:
|
||||
|
|
|
|||
|
|
@ -273,6 +273,7 @@ public:
|
|||
U64 FPS32ToDouble(const U32& a, bool round_to_nearest, bool fpscr_controlled);
|
||||
U64 FPU32ToDouble(const U32& a, bool round_to_nearest, bool fpscr_controlled);
|
||||
|
||||
U128 FPVectorAbsoluteDifference(size_t esize, const U128& a, const U128& b);
|
||||
U128 FPVectorAdd(size_t esize, const U128& a, const U128& b);
|
||||
U128 FPVectorDiv(size_t esize, const U128& a, const U128& b);
|
||||
U128 FPVectorEqual(size_t esize, const U128& a, const U128& b);
|
||||
|
|
|
|||
|
|
@ -396,6 +396,8 @@ OPCODE(FPU32ToDouble, T::U64, T::U32, T::U
|
|||
OPCODE(FPS32ToDouble, T::U64, T::U32, T::U1 )
|
||||
|
||||
// Floating-point vector instructions
|
||||
OPCODE(FPVectorAbsoluteDifference32, T::U128, T::U128, T::U128 )
|
||||
OPCODE(FPVectorAbsoluteDifference64, T::U128, T::U128, T::U128 )
|
||||
OPCODE(FPVectorAdd32, T::U128, T::U128, T::U128 )
|
||||
OPCODE(FPVectorAdd64, T::U128, T::U128, T::U128 )
|
||||
OPCODE(FPVectorDiv32, T::U128, T::U128, T::U128 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue