A64: Implement SHLL/SHLL2

This commit is contained in:
Lioncash 2018-05-08 10:14:06 -04:00 committed by MerryMage
parent 43e6e98c3b
commit 0e61ee6bf6
2 changed files with 15 additions and 1 deletions

View file

@ -281,4 +281,18 @@ bool TranslatorVisitor::SCVTF_int_4(bool Q, bool sz, Vec Vn, Vec Vd) {
return true;
}
bool TranslatorVisitor::SHLL(bool Q, Imm<2> size, Vec Vn, Vec Vd) {
if (size == 0b11) {
return ReservedValue();
}
const size_t esize = 8 << size.ZeroExtend();
const IR::U128 operand = ir.VectorZeroExtend(esize, Vpart(64, Vn, Q));
const IR::U128 result = ir.VectorLogicalShiftLeft(esize * 2, operand, static_cast<u8>(esize));
V(128, Vd, result);
return true;
}
} // namespace Dynarmic::A64