mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-07 17:36:27 +00:00
IR: Implement FPVectorSub
This commit is contained in:
@@ -1139,6 +1139,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::FPVectorSub(size_t esize, const U128& a, const U128& b) {
|
||||
switch (esize) {
|
||||
case 32:
|
||||
return Inst<U128>(Opcode::FPVectorSub32, a, b);
|
||||
case 64:
|
||||
return Inst<U128>(Opcode::FPVectorSub64, a, b);
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
void IREmitter::Breakpoint() {
|
||||
Inst(Opcode::Breakpoint);
|
||||
}
|
||||
|
||||
@@ -247,6 +247,8 @@ 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 FPVectorSub(size_t esize, const U128& a, const U128& b);
|
||||
|
||||
void Breakpoint();
|
||||
|
||||
void SetTerm(const Terminal& terminal);
|
||||
|
||||
@@ -289,6 +289,10 @@ OPCODE(FPS32ToSingle, T::U32, T::U32, T::U1
|
||||
OPCODE(FPU32ToDouble, T::U64, T::U32, T::U1 )
|
||||
OPCODE(FPS32ToDouble, T::U64, T::U32, T::U1 )
|
||||
|
||||
// Floating-point vector instructions
|
||||
OPCODE(FPVectorSub32, T::U128, T::U128, T::U128 )
|
||||
OPCODE(FPVectorSub64, T::U128, T::U128, T::U128 )
|
||||
|
||||
// A32 Memory access
|
||||
A32OPC(ClearExclusive, T::Void, )
|
||||
A32OPC(SetExclusive, T::Void, T::U32, T::U8 )
|
||||
|
||||
Reference in New Issue
Block a user