aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/make_nm.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2021-12-14 11:41:20 +0900
committerMITSUNARI Shigeo <[email protected]>2021-12-14 11:41:20 +0900
commitfb158f9014282936ad2819919f266d3e09f61425 (patch)
tree7e035203a7730c43c9312af267b765a15d086a80 /test/make_nm.cpp
parent9be47ceb2b72cc520f761520712f3210fdd2f1d3 (diff)
downloadxbyak-fb158f9014282936ad2819919f266d3e09f61425.tar.gz
xbyak-fb158f9014282936ad2819919f266d3e09f61425.zip
support jmp(mem, T_FAR)
Diffstat (limited to 'test/make_nm.cpp')
-rw-r--r--test/make_nm.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/make_nm.cpp b/test/make_nm.cpp
index b797df5..f0503e6 100644
--- a/test/make_nm.cpp
+++ b/test/make_nm.cpp
@@ -701,6 +701,17 @@ class Test {
#endif
#endif
}
+ void putFarJmp() const
+ {
+#ifdef XBYAK64
+ put("jmp", "word[rax],T_FAR", "far word [rax]");
+ put("jmp", "dword[rax],T_FAR", "far dword [rax]");
+ put("jmp", "qword[rax],T_FAR", "far qword [rax]");
+#else
+ put("jmp", "dword[eax],T_FAR", "far dword [eax]");
+ put("jmp", "word[eax],T_FAR", "far word [eax]");
+#endif
+ }
void putMMX1() const
{
// emms etc
@@ -2530,6 +2541,7 @@ public:
#else // USE_AVX
putJmp();
+ putFarJmp();
#ifdef USE_YASM