From 82e0deb8ab26764403595f93d93062bd7d99982e Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Fri, 28 Jan 2022 10:57:21 +0900 Subject: v6.02 --- test/misc.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/misc.cpp') 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; } -- cgit v1.2.3