aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/misc.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2022-01-28 10:57:21 +0900
committerMITSUNARI Shigeo <[email protected]>2022-01-28 10:57:21 +0900
commit82e0deb8ab26764403595f93d93062bd7d99982e (patch)
tree966243ca0c5b045ecc0fea849fbd0f0a702b3870 /test/misc.cpp
parent4d9906a94d73b07877b217d1664a991f1e25569f (diff)
downloadxbyak-82e0deb8ab26764403595f93d93062bd7d99982e.tar.gz
xbyak-82e0deb8ab26764403595f93d93062bd7d99982e.zip
v6.02
Diffstat (limited to 'test/misc.cpp')
-rw-r--r--test/misc.cpp11
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;
}