mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-05 05:58:19 +01:00
A64: Implement USHL (scalar)
This commit is contained in:
parent
41f4717f2b
commit
7efbd73bac
2 changed files with 14 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue