This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ENTER/BOUND operands order.
- From: "Jan Beulich" <JBeulich at suse dot com>
- To: "Michael Zolotukhin" <michael dot v dot zolotukhin at gmail dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>, <slawomir dot wojtasiak at swksoftware dot pl>
- Date: Thu, 16 Jan 2014 15:25:34 +0000
- Subject: Re: ENTER/BOUND operands order.
- Authentication-results: sourceware.org; auth=none
- References: <3482868a668de8ebe53975eb7d79d725 dot qmail at home dot pl> <b4fcb2a62aa358bc134689ccd33eebcb dot qmail at home dot pl> <52D7A465020000780011423E at nat28 dot tlf dot novell dot com> <CANtU078BKxoUiKdmqp8ii0TFvi2T1itzzn7dicQoAbKzdwtRmg at mail dot gmail dot com>
>>> On 16.01.14 at 14:57, Michael Zolotukhin <michael.v.zolotukhin@gmail.com> wrote:
> 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]).
No, sorry, test cases aren't the reference here. The reference
is the manual, which says e.g.
VCVTUSI2SS xmm1, xmm2, r/m32{er}
(similar for the others). See that the rounding mode specifier is
last, after the GPR?
Jan