This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ENTER/BOUND operands order.


Hi Slawomir, Jan,

Correct syntax for instructions with rounding/sae is the following:
rounding/sae operand should go after last simd-operand (xmm/ymm/zmm
register) in Intel syntax and before the first simd operand in AT&T
syntax.  Examples:

vcvtusi2ssl     %eax, {rn-sae}, %xmm5, %xmm6 # AT&T syntax
vcvtps2dq       {rn-sae}, %zmm5, %zmm6       # AT&T syntax

vcvtusi2ss      xmm6, xmm5, {rn-sae}, eax    # Intel syntax
vcvtps2dq       zmm6, zmm5, {rn-sae}         # Intel syntax

I don't see any inconsistency here.  You could look at the
corresponding tests in binutils source-tree to check the allowed
syntax for other cases (see files gas/testsuite/gas/i386/*.s, e.g.
[1]).

1. https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gas/testsuite/gas/i386/avx512f.s;h=bd833c25a908f8d031d6081232348f302444dc04;hb=master

Thanks,
Michael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]