aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2022-04-05 15:08:12 +0900
committerMITSUNARI Shigeo <[email protected]>2022-04-05 15:08:12 +0900
commita220fd69a20255de3ef046507beee4850dab84e4 (patch)
tree88c0d0e5ca915bf85fb2867bec0dc64df15af56b /test
parent64ec053e6177e7b2cbeca80aaf6bd6f68573cf15 (diff)
downloadxbyak-a220fd69a20255de3ef046507beee4850dab84e4.tar.gz
xbyak-a220fd69a20255de3ef046507beee4850dab84e4.zip
add umwait
Diffstat (limited to 'test')
-rw-r--r--test/misc.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/misc.cpp b/test/misc.cpp
index 0b664ef..f46239b 100644
--- a/test/misc.cpp
+++ b/test/misc.cpp
@@ -1891,7 +1891,7 @@ CYBOZU_TEST_AUTO(vaddph)
}
#endif
-CYBOZU_TEST_AUTO(misc)
+CYBOZU_TEST_AUTO(waitpkg)
{
struct Code : Xbyak::CodeGenerator {
Code()
@@ -1905,6 +1905,8 @@ CYBOZU_TEST_AUTO(misc)
umonitor(ecx);
umonitor(rcx);
#endif
+ umwait(eax);
+ umwait(ebx);
}
} c;
const uint8_t tbl[] = {
@@ -1914,6 +1916,9 @@ CYBOZU_TEST_AUTO(misc)
// umonitor
0x67, 0xf3, 0x0f, 0xae, 0xf1,
0xf3, 0x0f, 0xae, 0xf1,
+ // tpause
+ 0xf2, 0x0f, 0xae, 0xf0,
+ 0xf2, 0x0f, 0xae, 0xf3,
};
const size_t n = sizeof(tbl) / sizeof(tbl[0]);
CYBOZU_TEST_EQUAL(c.getSize(), n);