This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] x86: VCVTNEPS2BF16{X,Y} should permit broadcasting
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jan Beulich <jbeulich at suse dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 20 Jan 2020 05:58:47 -0800
- Subject: Re: [PATCH] x86: VCVTNEPS2BF16{X,Y} should permit broadcasting
- References: <48f404b4-dbb3-cbd0-9b53-e9475b56e901@suse.com>
On Mon, Jan 20, 2020 at 4:00 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> Just like other VCVT*{X,Y} templates do, and to allow the programmer
> flexibility (might be relevant in particular when heavily macro-izing
> code), the two templates should also have Broadcast set, just like their
> X/Y-suffix-less counterparts. This in turn requires them to also have
> * Dword set on their memory operands, to cover the logic added to i386gen
> by 4a1b91eabbe7 ("x86: Expand Broadcast to 3 bits"),
> * Xmmword/Ymmword set on their memory operands, to satisfy broadcast
> sizing logic in gas itself.
> Otherwise ATTSyntax templates wouldn't need such operand size attributes.
>
> While extending the test cases, also add Intel syntax broadcast forms
> without explicit size specifiers.
>
> gas/
> 2020-01-XX Jan Beulich <jbeulich@suse.com>
>
> * testsuite/gas/i386/avx512_bf16_vl.s,
> testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
> of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
> broadcast forms of VCVTNEPS2BF16.
> * testsuite/gas/i386/avx512_bf16_vl.d,
> testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
>
> opcodes/
> 2020-01-XX Jan Beulich <jbeulich@suse.com>
>
> * i386-opc.tbl (vcvtneps2bf16x): Add Broadcast, Xmmword, and
> Dword.
> (vcvtneps2bf16y): Add Broadcast, Ymmword, and Dword.
> * i386-tbl.h: Re-generate.
>
OK.
Thanks.
--
H.J.