mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-24 11:42:57 +00:00
A64: Implement FRSQRTS' half-precision scalar variant
With the necessary machinery in place, we can now handle the half-precision variant.
This commit is contained in:
@@ -316,6 +316,17 @@ bool TranslatorVisitor::FRECPS_2(bool sz, Vec Vm, Vec Vn, Vec Vd) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::FRSQRTS_1(Vec Vm, Vec Vn, Vec Vd) {
|
||||
const size_t esize = 16;
|
||||
|
||||
const IR::U16 operand1 = V_scalar(esize, Vn);
|
||||
const IR::U16 operand2 = V_scalar(esize, Vm);
|
||||
const IR::U16 result = ir.FPRSqrtStepFused(operand1, operand2);
|
||||
|
||||
V_scalar(esize, Vd, result);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::FRSQRTS_2(bool sz, Vec Vm, Vec Vn, Vec Vd) {
|
||||
const size_t esize = sz ? 64 : 32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user