mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-08 05:36:28 +00:00
A64: Implement AESIMC and AESMC
This commit is contained in:
27
src/frontend/A64/translate/impl/simd_aes.cpp
Normal file
27
src/frontend/A64/translate/impl/simd_aes.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
/* This file is part of the dynarmic project.
|
||||
* Copyright (c) 2018 MerryMage
|
||||
* This software may be used and distributed according to the terms of the GNU
|
||||
* General Public License version 2 or any later version.
|
||||
*/
|
||||
|
||||
#include "frontend/A64/translate/impl/impl.h"
|
||||
|
||||
namespace Dynarmic::A64 {
|
||||
|
||||
bool TranslatorVisitor::AESIMC(Vec Vn, Vec Vd) {
|
||||
const IR::U128 operand = ir.GetQ(Vn);
|
||||
const IR::U128 result = ir.AESInverseMixColumns(operand);
|
||||
|
||||
ir.SetQ(Vd, result);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::AESMC(Vec Vn, Vec Vd) {
|
||||
const IR::U128 operand = ir.GetQ(Vn);
|
||||
const IR::U128 result = ir.AESMixColumns(operand);
|
||||
|
||||
ir.SetQ(Vd, result);
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace Dynarmic::A64
|
||||
Reference in New Issue
Block a user