A64: Implement RBIT (vector)

This commit is contained in:
Lioncash 2018-04-03 10:47:39 -04:00 committed by MerryMage
parent 64b1f2d468
commit 83ff7a43d1
2 changed files with 11 additions and 1 deletions

View file

@ -638,7 +638,7 @@ INST(NEG_2, "NEG (vector)", "0Q101
//INST(UCVTF_int_3, "UCVTF (vector, integer)", "0Q10111001111001110110nnnnnddddd") //INST(UCVTF_int_3, "UCVTF (vector, integer)", "0Q10111001111001110110nnnnnddddd")
//INST(UCVTF_int_4, "UCVTF (vector, integer)", "0Q1011100z100001110110nnnnnddddd") //INST(UCVTF_int_4, "UCVTF (vector, integer)", "0Q1011100z100001110110nnnnnddddd")
INST(NOT, "NOT", "0Q10111000100000010110nnnnnddddd") INST(NOT, "NOT", "0Q10111000100000010110nnnnnddddd")
//INST(RBIT_asimd, "RBIT (vector)", "0Q10111001100000010110nnnnnddddd") INST(RBIT_asimd, "RBIT (vector)", "0Q10111001100000010110nnnnnddddd")
//INST(FNEG_1, "FNEG (vector)", "0Q10111011111000111110nnnnnddddd") //INST(FNEG_1, "FNEG (vector)", "0Q10111011111000111110nnnnnddddd")
//INST(FNEG_2, "FNEG (vector)", "0Q1011101z100000111110nnnnnddddd") //INST(FNEG_2, "FNEG (vector)", "0Q1011101z100000111110nnnnnddddd")
//INST(FRINTI_1, "FRINTI (vector)", "0Q10111011111001100110nnnnnddddd") //INST(FRINTI_1, "FRINTI (vector)", "0Q10111011111001100110nnnnnddddd")

View file

@ -125,4 +125,14 @@ bool TranslatorVisitor::NOT(bool Q, Vec Vn, Vec Vd) {
return true; return true;
} }
bool TranslatorVisitor::RBIT_asimd(bool Q, Vec Vn, Vec Vd) {
const size_t datasize = Q ? 128 : 64;
const IR::U128 data = V(datasize, Vn);
const IR::U128 result = ir.VectorReverseBits(data);
V(datasize, Vd, result);
return true;
}
} // namespace Dynarmic::A64 } // namespace Dynarmic::A64