mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-15 03:26:28 +00:00
A64: Implement FACGT's vector single/double precision variants
This commit is contained in:
@@ -380,6 +380,22 @@ bool TranslatorVisitor::FABD_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::FACGT_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd) {
|
||||
if (sz && !Q) {
|
||||
return ReservedValue();
|
||||
}
|
||||
|
||||
const size_t datasize = Q ? 128 : 64;
|
||||
const size_t esize = sz ? 64 : 32;
|
||||
|
||||
const IR::U128 operand1 = ir.FPVectorAbs(esize, V(datasize, Vn));
|
||||
const IR::U128 operand2 = ir.FPVectorAbs(esize, V(datasize, Vm));
|
||||
const IR::U128 result = ir.FPVectorGreater(esize, operand1, operand2);
|
||||
|
||||
V(datasize, Vd, result);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::FADD_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd) {
|
||||
if (sz && !Q) {
|
||||
return ReservedValue();
|
||||
|
||||
Reference in New Issue
Block a user