aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2023-12-26 12:33:39 +0900
committerMITSUNARI Shigeo <[email protected]>2023-12-26 12:33:39 +0900
commit2255aea0d3403509daec287206a3550ace6f8e98 (patch)
tree85c75d1e827a84a06717a9472db2cd052a859e27 /doc
parentb5e115284a90d688190f87ba163617da7dd58517 (diff)
downloadxbyak-2255aea0d3403509daec287206a3550ace6f8e98.tar.gz
xbyak-2255aea0d3403509daec287206a3550ace6f8e98.zip
[doc] add ccmpSCC and ctestSCC
Diffstat (limited to 'doc')
-rw-r--r--doc/usage.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/usage.md b/doc/usage.md
index e0ecccc..1c9089b 100644
--- a/doc/usage.md
+++ b/doc/usage.md
@@ -145,6 +145,16 @@ vpdpbusd(xm0, xm1, xm2); // VEX encoding
- `imul(ax|T_zu, cx, 0x1234);` // Set ND=ZU
- `imul(ax|T_zu|T_nf, cx, 0x1234);` // Set ND=ZU and EVEX.NF=1
- `setb(r31b|T_zu);` // same as set(r31b); movzx(r31, r31b);
+ - See [sample/zero_upper.cpp](../sample/zero_upper.cpp)
+
+### ccmpSCC and ctestSCC
+
+- ccmpSCC(op1, op2, dfv); // eflags = eflags == SCC ? cmp(op1, op2) : dfv
+- ctestSCC(op1, op2, dfv); // eflags = eflags == SCC ? test(op1, op2) : dfv
+- SCC means source condition code such as z, a, gt.
+- See [sample/ccmp.cpp](../sample/ccmp.cpp)
+- Specify the union of T_of, T_sf, T_zf, or T_cf for dfv.
+
## Label
Two kinds of Label are supported. (String literal and Label class).