A64: Implement AESE

This commit is contained in:
Lioncash
2018-02-03 13:16:02 -05:00
committed by MerryMage
parent 68f46c8334
commit ccef85dbb7
8 changed files with 98 additions and 8 deletions

View File

@@ -8,6 +8,16 @@
namespace Dynarmic::A64 {
bool TranslatorVisitor::AESE(Vec Vn, Vec Vd) {
const IR::U128 operand1 = ir.GetQ(Vd);
const IR::U128 operand2 = ir.GetQ(Vn);
const IR::U128 result = ir.AESEncrypt(ir.VectorEor(operand1, operand2));
ir.SetQ(Vd, result);
return true;
}
bool TranslatorVisitor::AESIMC(Vec Vn, Vec Vd) {
const IR::U128 operand = ir.GetQ(Vn);
const IR::U128 result = ir.AESInverseMixColumns(operand);