From: anonymous c. <nas...@us...> - 2013-10-16 07:33:21
|
> + bndstx [rax+0x3,rbx], bnd0 ; NASM - split EA > + bndstx [rax+rbx*1+0x3], bnd0 ; GAS > + bndstx [rax+rbx+3], bnd0 ; GAS > + bndstx [rax+0x3], bnd0, rbx ; ICC-1 > + bndstx [rax+0x3], rbx, bnd0 ; ICC-2 The GAS one is the only one that follows traditional NASM syntax. I see zero reason to clutter NASM with the 3-op or the comma syntax -- both of them can be implemented via fairly trivial macros, if a user really wants to code that way. As a result, you will end up with much less intrusive NASM changes for MPX support. All you really need is (a) warn for 16-bit address size for MPX memory instructions, (b) warn for EIP/RIP-relative address size for BND{LDX,STX,MK}, as well as (c) don't permit the EAF_TIMESTWO optimizations. |