[skip ci] [doc] update setDefaultEncoding

This commit is contained in:
MITSUNARI Shigeo 2024-10-13 15:07:35 +09:00
parent 14ae9bf485
commit f3f2dd2d74
2 changed files with 13 additions and 12 deletions

View file

@ -121,15 +121,14 @@ vmpsadbw(xm1, xm3, xm15, 3); // evex(avx10.2)
``` ```
- `setDefaultEncoding(PreferredEncoding vnniEnc = EvexEncoding, PreferredEncoding mpsadbwEnc = VexEncoding)` - `setDefaultEncoding(PreferredEncoding vnniEnc = EvexEncoding, PreferredEncoding avx10Enc = VexEncoding)`
- 1st argument. Set the default encoding to select EVEX or VEX for VNNI
- The default value is EvexEncoding (AVX512_VNNI). param|vnniEnc|avx10Enc
- encoded as AVX-VNNI if VexEncoding is set. -|-|-
- This parameter affects to vpdpbusd, vpdpbusds, vpdpwssd, vpdpwssds. EvexEncoding|AVX512_VNNI|AVX10.2
- 2nd argument. Set the default encoding to select EVEX or VEX for vmpsadbw VexEncoding|AVX/AVX2|AVX-VNNI-INT8
- The default value is VexEncoding (AVX/AVX2). default|EvexEncoding|VexEncoding
- encoded as AVX10.2 if EvexEncoding is set. mnemonic|vpdpbusd, vpdpbusds, vpdpwssd, vpdpwssds|vmpsadbw, vpdpbssd
- This parameter affects to vmpsadbw.
### Remark ### Remark
* `k1`, ..., `k7` are opmask registers. * `k1`, ..., `k7` are opmask registers.

View file

@ -3170,9 +3170,11 @@ public:
#undef jnl #undef jnl
#endif #endif
// set default encoding to select Vex or Evex // set default encoding
void setDefaultEncoding(PreferredEncoding vnniEnc = EvexEncoding, PreferredEncoding mpsadbwEnc = VexEncoding) // vnniEnc : control AVX512_VNNI (evex:default) or AVX-VNNI (vex)
{ defaultEncoding_[0] = vnniEnc; defaultEncoding_[1] = mpsadbwEnc; } // avx10Enc : control mpsadbw, AVX-VNNI-INT8 (vex:default) or AVX10.2 (evex)
void setDefaultEncoding(PreferredEncoding vnniEnc = EvexEncoding, PreferredEncoding avx10Enc = VexEncoding)
{ defaultEncoding_[0] = vnniEnc; defaultEncoding_[1] = avx10Enc; }
void sha1msg12(const Xmm& x, const Operand& op) void sha1msg12(const Xmm& x, const Operand& op)
{ {