mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-08 07:28:09 +01:00
A64: Implement CMLE (zero)'s scalar variant
This commit is contained in:
parent
6534184df2
commit
4ec735f707
2 changed files with 8 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ enum class ComparisonType {
|
|||
GT,
|
||||
HI,
|
||||
HS,
|
||||
LE,
|
||||
LT,
|
||||
};
|
||||
|
||||
|
|
@ -48,6 +49,8 @@ bool ScalarCompare(TranslatorVisitor& v, Imm<2> size, boost::optional<Vec> Vm, V
|
|||
return v.ir.VectorGreaterUnsigned(esize, operand1, operand2);
|
||||
case ComparisonType::HS:
|
||||
return v.ir.VectorGreaterEqualUnsigned(esize, operand1, operand2);
|
||||
case ComparisonType::LE:
|
||||
return v.ir.VectorLessEqualSigned(esize, operand1, operand2);
|
||||
case ComparisonType::LT:
|
||||
default:
|
||||
return v.ir.VectorLessSigned(esize, operand1, operand2);
|
||||
|
|
@ -97,6 +100,10 @@ bool TranslatorVisitor::CMGT_zero_1(Imm<2> size, Vec Vn, Vec Vd) {
|
|||
return ScalarCompare(*this, size, {}, Vn, Vd, ComparisonType::GT, ComparisonVariant::Zero);
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::CMLE_1(Imm<2> size, Vec Vn, Vec Vd) {
|
||||
return ScalarCompare(*this, size, {}, Vn, Vd, ComparisonType::LE, ComparisonVariant::Zero);
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::CMLT_1(Imm<2> size, Vec Vn, Vec Vd) {
|
||||
return ScalarCompare(*this, size, {}, Vn, Vd, ComparisonType::LT, ComparisonVariant::Zero);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue