diff options
author | MITSUNARI Shigeo <[email protected]> | 2022-01-28 10:57:21 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2022-01-28 10:57:21 +0900 |
commit | 82e0deb8ab26764403595f93d93062bd7d99982e (patch) | |
tree | 966243ca0c5b045ecc0fea849fbd0f0a702b3870 /test/misc.cpp | |
parent | 4d9906a94d73b07877b217d1664a991f1e25569f (diff) | |
download | xbyak-82e0deb8ab26764403595f93d93062bd7d99982e.tar.gz xbyak-82e0deb8ab26764403595f93d93062bd7d99982e.zip |
v6.02
Diffstat (limited to 'test/misc.cpp')
-rw-r--r-- | test/misc.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/misc.cpp b/test/misc.cpp index 3b10c99..0e1c3f4 100644 --- a/test/misc.cpp +++ b/test/misc.cpp @@ -79,6 +79,17 @@ CYBOZU_TEST_AUTO(mov_const) CYBOZU_TEST_NO_EXCEPTION(mov(af[eax], v)); } } +#ifdef XBYAK64 + CYBOZU_TEST_NO_EXCEPTION(mov(rax, ptr[(void*)0x7fffffff])); + CYBOZU_TEST_EXCEPTION(mov(rax, ptr[(void*)0x17fffffff]), Xbyak::Error); +#ifdef XBYAK_OLD_DISP_CHECK + CYBOZU_TEST_NO_EXCEPTION(mov(rax, ptr[(void*)0x80000000])); + CYBOZU_TEST_NO_EXCEPTION(mov(rax, ptr[(void*)0xffffffff])); +#else + CYBOZU_TEST_EXCEPTION(mov(rax, ptr[(void*)0x80000000]), Xbyak::Error); + CYBOZU_TEST_EXCEPTION(mov(rax, ptr[(void*)0xffffffff]), Xbyak::Error); +#endif +#endif } } code; } |