mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-12 15:52:58 +00:00
frontend/ir/ir_emitter: Add opcodes for floating point reciprocal exponents
This commit is contained in:
@@ -1895,6 +1895,13 @@ U32U64 IREmitter::FPRecipEstimate(const U32U64& a) {
|
||||
return Inst<U64>(Opcode::FPRecipEstimate64, a);
|
||||
}
|
||||
|
||||
U32U64 IREmitter::FPRecipExponent(const U32U64& a) {
|
||||
if (a.GetType() == Type::U32) {
|
||||
return Inst<U32>(Opcode::FPRecipExponent32, a);
|
||||
}
|
||||
return Inst<U64>(Opcode::FPRecipExponent64, a);
|
||||
}
|
||||
|
||||
U32U64 IREmitter::FPRecipStepFused(const U32U64& a, const U32U64& b) {
|
||||
if (a.GetType() == Type::U32) {
|
||||
return Inst<U32>(Opcode::FPRecipStepFused32, a, b);
|
||||
|
||||
@@ -305,6 +305,7 @@ public:
|
||||
U32U64 FPMulX(const U32U64& a, const U32U64& b);
|
||||
U32U64 FPNeg(const U32U64& a);
|
||||
U32U64 FPRecipEstimate(const U32U64& a);
|
||||
U32U64 FPRecipExponent(const U32U64& a);
|
||||
U32U64 FPRecipStepFused(const U32U64& a, const U32U64& b);
|
||||
U32U64 FPRoundInt(const U32U64& a, FP::RoundingMode rounding, bool exact);
|
||||
U32U64 FPRSqrtEstimate(const U32U64& a);
|
||||
|
||||
@@ -484,6 +484,8 @@ OPCODE(FPNeg32, U32, U32
|
||||
OPCODE(FPNeg64, U64, U64 )
|
||||
OPCODE(FPRecipEstimate32, U32, U32 )
|
||||
OPCODE(FPRecipEstimate64, U64, U64 )
|
||||
OPCODE(FPRecipExponent32, U32, U32 )
|
||||
OPCODE(FPRecipExponent64, U64, U64 )
|
||||
OPCODE(FPRecipStepFused32, U32, U32, U32 )
|
||||
OPCODE(FPRecipStepFused64, U64, U64, U64 )
|
||||
OPCODE(FPRoundInt32, U32, U32, U8, U1 )
|
||||
|
||||
Reference in New Issue
Block a user