[nasm:master] travis: add vmx test
nasm-bot for Cyrill Gorcunov
gorcunov at gmail.com
Mon Nov 7 17:12:16 PST 2022
Commit-ID: 984761f9248c84685cbed6689055a0f130321b85
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=984761f9248c84685cbed6689055a0f130321b85
Author: Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Thu, 13 May 2021 01:25:04 +0300
Committer: Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Thu, 13 May 2021 01:25:04 +0300
travis: add vmx test
To test VMX instructions.
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
travis/test/vmx.asm | 21 +++++++++++++++++++++
travis/test/vmx.json | 12 ++++++++++++
travis/test/vmx.o.t | Bin 0 -> 656 bytes
3 files changed, 33 insertions(+)
diff --git a/travis/test/vmx.asm b/travis/test/vmx.asm
new file mode 100644
index 00000000..0755ead8
--- /dev/null
+++ b/travis/test/vmx.asm
@@ -0,0 +1,21 @@
+[bits 64]
+
+ clgi
+ stgi
+ vmcall
+ vmclear [0]
+ vmfunc
+ vmlaunch
+ vmload
+ vmmcall
+ vmptrld [0x11111111]
+ vmptrst [0x22222222]
+ vmread [0x22222222], rax
+ vmresume
+ vmrun
+ vmsave
+ vmwrite rax, [0x22222222]
+ vmxoff
+ vmxon [0x33333333]
+ invept rbx, [0x44444444]
+ invvpid rcx, [0x55555555]
diff --git a/travis/test/vmx.json b/travis/test/vmx.json
new file mode 100644
index 00000000..33fcb399
--- /dev/null
+++ b/travis/test/vmx.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test VMX instructions",
+ "id": "vmx",
+ "format": "elf64",
+ "source": "vmx.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "vmx.o" }
+ ]
+ }
+]
diff --git a/travis/test/vmx.o.t b/travis/test/vmx.o.t
new file mode 100644
index 00000000..7f321e9e
Binary files /dev/null and b/travis/test/vmx.o.t differ
More information about the Nasm-commits
mailing list