mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-05 05:58:19 +01:00
A64: Implement CMHI (register, scalar)
This commit is contained in:
parent
c18b20b8d1
commit
78bb12276a
2 changed files with 9 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ namespace {
|
|||
enum class ComparisonType {
|
||||
GE,
|
||||
GT,
|
||||
HI,
|
||||
};
|
||||
|
||||
bool ScalarCompare(TranslatorVisitor& v, Imm<2> size, Vec Vm, Vec Vn, Vec Vd, ComparisonType type) {
|
||||
|
|
@ -30,8 +31,10 @@ bool ScalarCompare(TranslatorVisitor& v, Imm<2> size, Vec Vm, Vec Vn, Vec Vd, Co
|
|||
case ComparisonType::GE:
|
||||
return v.ir.VectorGreaterEqualSigned(esize, operand1, operand2);
|
||||
case ComparisonType::GT:
|
||||
default:
|
||||
return v.ir.VectorGreaterSigned(esize, operand1, operand2);
|
||||
case ComparisonType::HI:
|
||||
default:
|
||||
return v.ir.VectorGreaterUnsigned(esize, operand1, operand2);
|
||||
}
|
||||
}();
|
||||
|
||||
|
|
@ -62,6 +65,10 @@ bool TranslatorVisitor::CMGT_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
|
|||
return ScalarCompare(*this, size, Vm, Vn, Vd, ComparisonType::GT);
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::CMHI_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
|
||||
return ScalarCompare(*this, size, Vm, Vn, Vd, ComparisonType::HI);
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::SUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
|
||||
if (size != 0b11) {
|
||||
return ReservedValue();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue