summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2013-09-27 16:39:16 -0700
committerJin Kyu Song <jin.kyu.song@intel.com>2013-11-20 11:29:41 -0800
commit9148fb5951ca9374a7fba4c586cac5e37562e019 (patch)
tree998de0e794bbcf8b7fe9585d46342cbb2e9a9672 /test
parent9f4706ff457ebd20f8f06e57140203aa58238196 (diff)
downloadnasm-9148fb5951ca9374a7fba4c586cac5e37562e019.tar.gz
nasm-9148fb5951ca9374a7fba4c586cac5e37562e019.tar.bz2
nasm-9148fb5951ca9374a7fba4c586cac5e37562e019.zip
parser: support split base,index effective address
Mostly intended for the "mib" expressions in BNDLDX/BNDSTX. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/splitea.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/splitea.asm b/test/splitea.asm
new file mode 100644
index 0000000..a2d980b
--- /dev/null
+++ b/test/splitea.asm
@@ -0,0 +1,11 @@
+ bits 32
+
+ mov eax,[eax]
+ mov eax,[eax+ecx]
+ mov eax,[eax+ecx*4]
+ mov eax,[eax+ecx*4+8]
+
+ mov eax,[eax]
+ mov eax,[eax,ecx]
+ mov eax,[eax,ecx*4]
+ mov eax,[eax+8,ecx*4]