aboutsummaryrefslogtreecommitdiff
path: root/modules/arch/x86/tests/strict-err.asm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/arch/x86/tests/strict-err.asm')
-rw-r--r--modules/arch/x86/tests/strict-err.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/arch/x86/tests/strict-err.asm b/modules/arch/x86/tests/strict-err.asm
new file mode 100644
index 0000000..3a97062
--- /dev/null
+++ b/modules/arch/x86/tests/strict-err.asm
@@ -0,0 +1,5 @@
+bits 64
+add [rax], dword 4 ; illegal; must use dword [eax], 4
+add [rax], strict dword 4 ; illegal; must use dword [eax], strict dword 4
+add [rax], qword 4 ; illegal; must use qword [rax], 4
+add [rax], strict qword 4 ; illegal; must use qword [eax], strict dword 4