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: [PATCH] Fix memory size for AVX512 gather/scatter.


On Thu, Mar 20, 2014 at 4:59 AM, Ilya Tocar <tocarip.intel@gmail.com> wrote:
> Hi,
>
> For gathers with indices larger than elements (e. g.)
>
> vpgatherqd      ymm6{k1}, ZMMWORD PTR [ebp+zmm7*8-123]
>
> We currently treat memory size as a size of index register,
> while it is actually should be size of destination  register:
>
> vpgatherqd      ymm6{k1}, YMMWORD PTR [ebp+zmm7*8-123]
>
> This patch fixes it.

I checked it into master and backported it to binutils-2_24-branch
with the addition to commit log:

Fix memory size for gather/scatter instructions

For gathers with indices larger than elements (e. g.)

vpgatherqd      ymm6{k1}, ZMMWORD PTR [ebp+zmm7*8-123]

We currently treat memory size as a size of index register, while it is
actually should be size of destination register:

vpgatherqd      ymm6{k1}, YMMWORD PTR [ebp+zmm7*8-123]

This patch fixes it.

Thanks.

-- 
H.J.


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