mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-18 14:48:44 +02:00
* ARMeilleure: Add AVX512{F,VL,DQ,BW} detection Add `UseAvx512Ortho` and `UseAvx512OrthoFloat` optimization flags as short-hands for `F+VL` and `F+VL+DQ`. * ARMeilleure: Add initial support for EVEX instruction encoding Does not implement rounding, or exception controls. * ARMeilleure: Add `X86Vpternlogd` Accelerates the vector-`Not` instruction. * ARMeilleure: Add check for `OSXSAVE` for AVX{2,512} * ARMeilleure: Add check for `XCR0` flags Add XCR0 register checks for AVX and AVX512F, following the guidelines from section 14.3 and 15.2 from the Intel Architecture Software Developer's Manual. * ARMeilleure: Remove redundant `ReProtect` and `Dispose`, formatting * ARMeilleure: Move XCR0 procedure to GetXcr0Eax * ARMeilleure: Add `XCR0` to `FeatureInfo` structure * ARMeilleure: Utilize `ReadOnlySpan` for Xcr0 assembly Avoids an additional allocation * ARMeilleure: Formatting fixes * ARMeilleure: Fix EVEX encoding src2 register index > Just like in VEX prefix, vvvv is provided in inverted form. * ARMeilleure: Add `X86Vpternlogd` acceleration to `Vmvn_I` Passes unit tests, verified instruction utilization * ARMeilleure: Fix EVEX register operand designations Operand 2 was being sourced improperly. EVEX encoded instructions source their operands like so: Operand 1: ModRM:reg Operand 2: EVEX.vvvvv Operand 3: ModRM:r/m Operand 4: Imm This fixes the improper register designations when emitting vpternlog. Now "dest", "src1", "src2" arguments emit in the proper order in EVEX instructions. * ARMeilleure: Add `X86Vpternlogd` acceleration to `Orn_V` * ARMeilleure: PTC version bump * ARMeilleure: Update EVEX encoding Debug.Assert to Debug.Fail * ARMeilleure: Update EVEX encoding comment capitalization
229 lines
3.6 KiB
C#
229 lines
3.6 KiB
C#
namespace ARMeilleure.CodeGen.X86
|
|
{
|
|
enum X86Instruction
|
|
{
|
|
None,
|
|
Add,
|
|
Addpd,
|
|
Addps,
|
|
Addsd,
|
|
Addss,
|
|
Aesdec,
|
|
Aesdeclast,
|
|
Aesenc,
|
|
Aesenclast,
|
|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stmxcsr,
|
|
Sub,
|
|
Subpd,
|
|
Subps,
|
|
Subsd,
|
|
Subss,
|
|
Test,
|
|
Unpckhpd,
|
|
Unpckhps,
|
|
Unpcklpd,
|
|
Unpcklps,
|
|
Vblendvpd,
|
|
Vblendvps,
|
|
Vcvtph2ps,
|
|
Vcvtps2ph,
|
|
Vfmadd231ps,
|
|
Vfmadd231sd,
|
|
Vfmadd231ss,
|
|
Vfmsub231sd,
|
|
Vfmsub231ss,
|
|
Vfnmadd231ps,
|
|
Vfnmadd231sd,
|
|
Vfnmadd231ss,
|
|
Vfnmsub231sd,
|
|
Vfnmsub231ss,
|
|
Vpblendvb,
|
|
Vpternlogd,
|
|
Xor,
|
|
Xorpd,
|
|
Xorps,
|
|
|
|
Count
|
|
}
|
|
} |