From d9ff9d7aa15d99d911a0fad7f707418c6d416d43 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 10 Aug 2025 00:22:41 -0500 Subject: [PATCH] Common: Remove old SIMD helpers --- common/emitter/implement/simd_helpers.h | 49 ------------------------- common/emitter/simd.cpp | 14 ------- 2 files changed, 63 deletions(-) diff --git a/common/emitter/implement/simd_helpers.h b/common/emitter/implement/simd_helpers.h index f2a8812865..12c5a28b2f 100644 --- a/common/emitter/implement/simd_helpers.h +++ b/common/emitter/implement/simd_helpers.h @@ -157,53 +157,4 @@ namespace x86Emitter void operator()(const xRegisterSSE& dst, const xRegisterSSE& src1, const xRegisterSSE& src2, const xRegisterSSE& src3) const; void operator()(const xRegisterSSE& dst, const xRegisterSSE& src1, const xIndirectVoid& src2, const xRegisterSSE& src3) const; }; - - // ------------------------------------------------------------------------ - // For implementing SSE-only logic operations that have xmmreg,xmmreg/rm forms only, - // like ANDPS/ANDPD - // - struct xImplSimd_DestRegSSE - { - u8 Prefix; - u16 Opcode; - - void operator()(const xRegisterSSE& to, const xRegisterSSE& from) const; - void operator()(const xRegisterSSE& to, const xIndirectVoid& from) const; - }; - - // ------------------------------------------------------------------------ - // For implementing SSE-only logic operations that have xmmreg,reg/rm,imm forms only - // (PSHUFD / PSHUFHW / etc). - // - struct xImplSimd_DestRegImmSSE - { - u8 Prefix; - u16 Opcode; - - void operator()(const xRegisterSSE& to, const xRegisterSSE& from, u8 imm) const; - void operator()(const xRegisterSSE& to, const xIndirectVoid& from, u8 imm) const; - }; - - struct xImplSimd_DestSSE_CmpImm - { - u8 Prefix; - u16 Opcode; - - void operator()(const xRegisterSSE& to, const xRegisterSSE& from, SSE2_ComparisonType imm) const; - void operator()(const xRegisterSSE& to, const xIndirectVoid& from, SSE2_ComparisonType imm) const; - }; - - // ------------------------------------------------------------------------ - // For implementing SSE operations that have reg,reg/rm forms only, - // but accept either MM or XMM destinations (most PADD/PSUB and other P arithmetic ops). - // - struct xImplSimd_DestRegEither - { - u8 Prefix; - u16 Opcode; - - void operator()(const xRegisterSSE& to, const xRegisterSSE& from) const; - void operator()(const xRegisterSSE& to, const xIndirectVoid& from) const; - }; - } // end namespace x86Emitter diff --git a/common/emitter/simd.cpp b/common/emitter/simd.cpp index 4a3f5cdd06..723434c9bb 100644 --- a/common/emitter/simd.cpp +++ b/common/emitter/simd.cpp @@ -288,20 +288,6 @@ namespace x86Emitter void xImplSimd_4ArgBlend::operator()(const xRegisterSSE& dst, const xRegisterSSE& src1, const xRegisterSSE& src2, const xRegisterSSE& src3) const { EmitSIMD(x86Emitter::use_avx ? avx : sse, dst, src1, src2, src3); } void xImplSimd_4ArgBlend::operator()(const xRegisterSSE& dst, const xRegisterSSE& src1, const xIndirectVoid& src2, const xRegisterSSE& src3) const { EmitSIMD(x86Emitter::use_avx ? avx : sse, dst, src1, src2, src3); } - void xImplSimd_DestRegSSE::operator()(const xRegisterSSE& to, const xRegisterSSE& from) const { OpWriteSSE(Prefix, Opcode); } - void xImplSimd_DestRegSSE::operator()(const xRegisterSSE& to, const xIndirectVoid& from) const { OpWriteSSE(Prefix, Opcode); } - - void xImplSimd_DestRegImmSSE::operator()(const xRegisterSSE& to, const xRegisterSSE& from, u8 imm) const { xOpWrite0F(Prefix, Opcode, to, from, imm); } - void xImplSimd_DestRegImmSSE::operator()(const xRegisterSSE& to, const xIndirectVoid& from, u8 imm) const { xOpWrite0F(Prefix, Opcode, to, from, imm); } - - - void xImplSimd_DestRegEither::operator()(const xRegisterSSE& to, const xRegisterSSE& from) const { OpWriteSSE(Prefix, Opcode); } - void xImplSimd_DestRegEither::operator()(const xRegisterSSE& to, const xIndirectVoid& from) const { OpWriteSSE(Prefix, Opcode); } - - - void xImplSimd_DestSSE_CmpImm::operator()(const xRegisterSSE& to, const xRegisterSSE& from, SSE2_ComparisonType imm) const { xOpWrite0F(Prefix, Opcode, to, from, imm); } - void xImplSimd_DestSSE_CmpImm::operator()(const xRegisterSSE& to, const xIndirectVoid& from, SSE2_ComparisonType imm) const { xOpWrite0F(Prefix, Opcode, to, from, imm); } - // ===================================================================================================== // SIMD Arithmetic Instructions // =====================================================================================================