This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] x86/Intel: accept mandated operand order for vcvt{,u}si2s{d,s}
- From: "Jan Beulich" <JBeulich at suse dot com>
- To: "Kirill Yukhin" <kirill dot yukhin at gmail dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, "Binutils" <binutils at sourceware dot org>,"H. Peter Anvin" <hpa at zytor dot com>
- Date: Tue, 26 May 2015 13:17:35 +0100
- Subject: Re: [PATCH] x86/Intel: accept mandated operand order for vcvt{,u}si2s{d,s}
- Authentication-results: sourceware.org; auth=none
- References: <552FE0630200007800072CD0 at mail dot emea dot novell dot com> <CAMe9rOomWLMwQT6R2qLr1p7_dzmwuNLsz2PEk-6tV3NTt_=24Q at mail dot gmail dot com> <55390A6A0200007800075263 at mail dot emea dot novell dot com> <CAMe9rOrSX3cgXCSJFsbDnKgnyNrX-Y4cYO2VL4uTrKV-O3fcCw at mail dot gmail dot com> <554906C70200007800076D28 at mail dot emea dot novell dot com> <20150525145555 dot GA9967 at msticlxl57 dot ims dot intel dot com> <55644524020000780007DB9A at mail dot emea dot novell dot com> <20150526112416 dot GC9967 at msticlxl57 dot ims dot intel dot com>
>>> On 26.05.15 at 13:24, <kirill.yukhin@gmail.com> wrote:
> Finally, (I promise, I repeat it last time) as far as SDM is not a source of
> Intel syntax,
Which btw is something I don't really buy, for three reasons:
1) Why would it specify mnemonics (including operands) then in the
first place?
2) Other architectures explicitly use the instruction specifications as
guideline for what assemblers should accept, or even require
assemblers to behave in a certain way (see e.g. ARM ARM).
3) In the absence of any other formal definition, one ought to use
what is there instead of inventing something new.
> I see no reason to allow another order. IMO, such addition might
> even increase confusion about this non-trivial stuff.
Quite the opposite - it eliminates some confusion: Just compare
vcvtsd2ss xmm6\{k7\},xmm5,xmm4,\{rn-sae\}
and
vcvtsi2ss xmm6,xmm5,\{rn-sae\},eax
(found in the unpatched testsuite). In the former and all other
instructions (excepting the questionable ones) the rounding
specifier goes after all source operands.
Jan