aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Cpu/LightningJit/Arm32/Target/Arm64/InstEmitNeonCrypto.cs
blob: a36ae82c6f0a7ae26e9976fa69411005effffa04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System.Diagnostics;

namespace Ryujinx.Cpu.LightningJit.Arm32.Target.Arm64
{
    static class InstEmitNeonCrypto
    {
        public static void Aesd(CodeGenContext context, uint rd, uint rm, uint size)
        {
            // TODO: Feature check, emulation if not supported.

            Debug.Assert(size == 0);

            InstEmitNeonCommon.EmitVectorUnary(context, rd, rm, context.Arm64Assembler.Aesd);
        }

        public static void Aese(CodeGenContext context, uint rd, uint rm, uint size)
        {
            // TODO: Feature check, emulation if not supported.

            Debug.Assert(size == 0);

            InstEmitNeonCommon.EmitVectorUnary(context, rd, rm, context.Arm64Assembler.Aese);
        }

        public static void Aesimc(CodeGenContext context, uint rd, uint rm, uint size)
        {
            // TODO: Feature check, emulation if not supported.

            Debug.Assert(size == 0);

            InstEmitNeonCommon.EmitVectorUnary(context, rd, rm, context.Arm64Assembler.Aesimc);
        }

        public static void Aesmc(CodeGenContext context, uint rd, uint rm, uint size)
        {
            // TODO: Feature check, emulation if not supported.

            Debug.Assert(size == 0);

            InstEmitNeonCommon.EmitVectorUnary(context, rd, rm, context.Arm64Assembler.Aesmc);
        }
    }
}