A64: Implement USHL (scalar)

This commit is contained in:
Lioncash 2018-04-22 22:45:03 -04:00 committed by MerryMage
parent 41f4717f2b
commit 7efbd73bac
2 changed files with 14 additions and 1 deletions

View file

@ -130,4 +130,17 @@ bool TranslatorVisitor::SUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
return true;
}
bool TranslatorVisitor::USHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
if (size != 0b11) {
return ReservedValue();
}
const IR::U128 operand1 = V(64, Vn);
const IR::U128 operand2 = V(64, Vm);
const IR::U128 result = ir.VectorLogicalVShift(64, operand1, operand2);
V(64, Vd, result);
return true;
}
} // namespace Dynarmic::A64