MPX: Adapt GAS's mib syntax with an index reg only
commit3b65323d800a04570e4364f9419d518a16bb9512
authorJin Kyu Song <jin.kyu.song@intel.com>
Fri, 8 Nov 2013 19:41:12 +0000 (8 11:41 -0800)
committerJin Kyu Song <jin.kyu.song@intel.com>
Wed, 20 Nov 2013 19:29:42 +0000 (20 11:29 -0800)
treefe94825d5d2b610e8a6640b0832f3b850366d43f
parent47e7389fdfd446cf9ff6f8a7535346b93fd3e586
MPX: Adapt GAS's mib syntax with an index reg only

GAS uses *1 multiplier for explicitly marking an index register in mib operand.
e.g.) [rdx * 1 + 3] is equivalent to [3, rdx] in NASM's split EA format
So only for mib operands, this is encoded same as gas does.

Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
assemble.c
test/mpx-64.asm