2017-01-10 23:15:17 +03:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
// $Id$
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2019-02-16 18:23:24 +03:00
|
|
|
// Copyright (c) 2017-2019 Stanislav Shwartsman
|
2017-01-10 23:15:17 +03:00
|
|
|
// Written by Stanislav Shwartsman [sshwarts at sourceforge net]
|
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA B 02110-1301 USA
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef BX_FETCHDECODE_OPMAP_0F3A_H
|
|
|
|
#define BX_FETCHDECODE_OPMAP_0F3A_H
|
|
|
|
|
|
|
|
#if BX_CPU_LEVEL >= 6
|
|
|
|
|
|
|
|
/* ************************************************************************ */
|
|
|
|
/* 3-byte opcode table (Table A-5, 0F 3A) */
|
|
|
|
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3A08[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_ROUNDPS_VpsWpsIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A09[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_ROUNDPD_VpdWpdIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A0A[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_ROUNDSS_VssWssIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A0B[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_ROUNDSD_VsdWsdIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A0C[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_BLENDPS_VpsWpsIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A0D[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_BLENDPD_VpdWpdIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A0E[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PBLENDW_VdqWdqIb) };
|
2017-01-10 23:15:17 +03:00
|
|
|
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3A0F[] = {
|
|
|
|
form_opcode(ATTR_SSE_NO_PREFIX, BX_IA_PALIGNR_PqQqIb),
|
|
|
|
last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PALIGNR_VdqWdqIb),
|
2017-01-10 23:15:17 +03:00
|
|
|
};
|
|
|
|
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3A14[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PEXTRB_EbdVdqIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A15[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PEXTRW_EwdVdqIb) };
|
2017-01-10 23:15:17 +03:00
|
|
|
|
|
|
|
// opcode 0F 3A 16
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3A16[] = {
|
2017-12-13 22:51:25 +03:00
|
|
|
#if BX_SUPPORT_X86_64
|
2019-02-16 18:23:24 +03:00
|
|
|
form_opcode(ATTR_SSE_PREFIX_66 | ATTR_OS64, BX_IA_PEXTRQ_EqVdqIb),
|
2017-12-13 22:51:25 +03:00
|
|
|
#endif
|
2019-02-16 18:23:24 +03:00
|
|
|
last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PEXTRD_EdVdqIb)
|
2017-01-10 23:15:17 +03:00
|
|
|
};
|
|
|
|
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3A17[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_EXTRACTPS_EdVpsIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A20[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PINSRB_VdqEbIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A21[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_INSERTPS_VpsWssIb) };
|
2017-01-10 23:15:17 +03:00
|
|
|
|
|
|
|
// opcode 0F 3A 22
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3A22[] = {
|
2017-12-13 23:59:41 +03:00
|
|
|
#if BX_SUPPORT_X86_64
|
2019-02-16 18:23:24 +03:00
|
|
|
form_opcode(ATTR_SSE_PREFIX_66 | ATTR_OS64, BX_IA_PINSRQ_VdqEqIb),
|
2017-12-13 23:59:41 +03:00
|
|
|
#endif
|
2019-02-16 18:23:24 +03:00
|
|
|
last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PINSRD_VdqEdIb)
|
2017-01-10 23:15:17 +03:00
|
|
|
};
|
|
|
|
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3A40[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_DPPS_VpsWpsIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A41[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_DPPD_VpdWpdIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A42[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_MPSADBW_VdqWdqIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A44[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PCLMULQDQ_VdqWdqIb) };
|
2017-01-10 23:15:17 +03:00
|
|
|
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3A60[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PCMPESTRM_VdqWdqIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A61[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PCMPESTRI_VdqWdqIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A62[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PCMPISTRM_VdqWdqIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3A63[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_PCMPISTRI_VdqWdqIb) };
|
2017-01-10 23:15:17 +03:00
|
|
|
|
2019-12-27 16:08:20 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3ACC[] = { last_opcode(ATTR_SSE_NO_PREFIX, BX_IA_SHA1RNDS4_VdqWdqIb) };
|
2019-02-16 18:23:24 +03:00
|
|
|
static const Bit64u BxOpcodeTable0F3ACE[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_GF2P8AFFINEQB_VdqWdqIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3ACF[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_GF2P8AFFINEINVQB_VdqWdqIb) };
|
|
|
|
static const Bit64u BxOpcodeTable0F3ADF[] = { last_opcode(ATTR_SSE_PREFIX_66, BX_IA_AESKEYGENASSIST_VdqWdqIb) };
|
2017-01-10 23:15:17 +03:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // BX_FETCHDECODE_OPMAP_0F3A_H
|