]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/i386/x86-64-inval-ept.s
Imported binutils-2.20
[msp430-binutils.git] / gas / testsuite / gas / i386 / x86-64-inval-ept.s
diff --git a/gas/testsuite/gas/i386/x86-64-inval-ept.s b/gas/testsuite/gas/i386/x86-64-inval-ept.s
new file mode 100644 (file)
index 0000000..89d6948
--- /dev/null
@@ -0,0 +1,21 @@
+# Check illegal EPT instructions in 64bit mode.
+       .text
+_start:
+       invept  (%rcx), %bx
+       invept  (%rcx), %ebx
+       invept  %rbx, (%rcx)
+       invept  %rbx, %rcx
+       invvpid (%rcx), %bx
+       invvpid (%rcx), %ebx
+       invvpid %rbx, (%rcx)
+       invvpid %rbx, %rcx
+
+       .intel_syntax noprefix
+       invept bx, oword ptr [rcx]
+       invept ebx, oword ptr [rcx]
+       invept oword ptr [rcx], rbx
+       invept rcx, rbx
+       invvpid bx, oword ptr [rcx]
+       invvpid ebx, oword ptr [rcx]
+       invvpid oword ptr [rcx], rbx
+       invvpid rcx, rbx