A64: Implement NOT (vector)
This commit is contained in:
parent
2cb0a699ba
commit
a9153218bd
2 changed files with 15 additions and 1 deletions
|
@ -644,7 +644,7 @@ INST(XTN, "XTN, XTN2", "0Q001
|
|||
//INST(CLZ_asimd, "CLZ (vector)", "0Q101110zz100000010010nnnnnddddd")
|
||||
//INST(UADALP, "UADALP", "0Q101110zz100000011010nnnnnddddd")
|
||||
//INST(SHLL, "SHLL, SHLL2", "0Q101110zz100001001110nnnnnddddd")
|
||||
//INST(NOT, "NOT", "0Q10111000100000010110nnnnnddddd")
|
||||
INST(NOT, "NOT", "0Q10111000100000010110nnnnnddddd")
|
||||
//INST(RBIT_asimd, "RBIT (vector)", "0Q10111001100000010110nnnnnddddd")
|
||||
//INST(URSQRTE, "URSQRTE", "0Q1011101z100001110010nnnnnddddd")
|
||||
|
||||
|
|
|
@ -36,4 +36,18 @@ bool TranslatorVisitor::XTN(bool Q, Imm<2> size, Vec Vn, Vec Vd) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::NOT(bool Q, Vec Vn, Vec Vd) {
|
||||
const size_t datasize = Q ? 128 : 64;
|
||||
|
||||
const IR::U128 operand = V(datasize, Vn);
|
||||
IR::U128 result = ir.VectorNot(operand);
|
||||
|
||||
if (datasize == 64) {
|
||||
result = ir.VectorZeroUpper(result);
|
||||
}
|
||||
|
||||
V(datasize, Vd, result);
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace Dynarmic::A64
|
||||
|
|
Loading…
Reference in a new issue