add tpause

This commit is contained in:
MITSUNARI Shigeo 2022-04-05 14:17:44 +09:00
parent c68646e8de
commit 764d54f6fa
4 changed files with 22 additions and 0 deletions

View file

@ -1890,3 +1890,22 @@ CYBOZU_TEST_AUTO(vaddph)
CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n);
}
#endif
CYBOZU_TEST_AUTO(misc)
{
struct Code : Xbyak::CodeGenerator {
Code()
{
tpause(eax);
tpause(ebx);
}
} c;
const uint8_t tbl[] = {
// tpause
0x66, 0x0f, 0xae, 0xf0,
0x66, 0x0f, 0xae, 0xf3,
};
const size_t n = sizeof(tbl) / sizeof(tbl[0]);
CYBOZU_TEST_EQUAL(c.getSize(), n);
CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n);
}