aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2024-10-13 13:50:03 +0900
committerMITSUNARI Shigeo <[email protected]>2024-10-13 13:51:06 +0900
commit2818beeffd198dae543019347360252d0ea7b78f (patch)
tree269a3d0d09910c11f74e61abc0a75fa00c2e7465
parenteca17384c575d06474495e79fad87646bd7d067a (diff)
downloadxbyak-2818beeffd198dae543019347360252d0ea7b78f.tar.gz
xbyak-2818beeffd198dae543019347360252d0ea7b78f.zip
[skip ci] [doc] setDefaultEncoding for vmpsadbw
-rw-r--r--doc/usage.md20
1 files changed, 16 insertions, 4 deletions
diff --git a/doc/usage.md b/doc/usage.md
index 0911b91..1ab56e1 100644
--- a/doc/usage.md
+++ b/doc/usage.md
@@ -112,12 +112,24 @@ vpdpbusd(xm0, xm1, xm2, EvexEncoding); // same as the above
vpdpbusd(xm0, xm1, xm2, VexEncoding); // VEX encoding
setDefaultEncoding(VexEncoding); // default encoding is VEX
vpdpbusd(xm0, xm1, xm2); // VEX encoding
+
+vmpsadbw(xm1, xm3, xm15, 3); // default encoding
+vmpsadbw(xm1, xm3, xm15, 3, VexEncoding); // vex(avx)
+vmpsadbw(xm1, xm3, xm15, 3, EvexEncoding); // evex(avx10.2)
+setDefaultEncoding(VexEncoding, EvexEncoding); // use 2nd argument.
+vmpsadbw(xm1, xm3, xm15, 3); // evex(avx10.2)
+
```
-- setDefaultEncoding(PreferredEncoding encoding);
- - Set the default encoding to select EVEX or VEX.
- - The default value is EvexEncoding.
- - This function affects only an instruction that has a PreferredEncoding argument such as vpdpbusd.
+- `setDefaultEncoding(PreferredEncoding vnniEnc = EvexEncoding, PreferredEncoding mpsadbwEnc = VexEncoding)`
+ - 1st argument. Set the default encoding to select EVEX or VEX for VNNI
+ - The default value is EvexEncoding (AVX512_VNNI).
+ - encoded as AVX-VNNI if VexEncoding is set.
+ - This parameter affects to vpdpbusd, vpdpbusds, vpdpwssd, vpdpwssds.
+ - 2nd argument. Set the default encoding to select EVEX or VEX for vmpsadbw
+ - The default value is VexEncoding (AVX/AVX2).
+ - encoded as AVX10.2 if EvexEncoding is set.
+ - This parameter affects to vmpsadbw.
### Remark
* `k1`, ..., `k7` are opmask registers.