[PATCH] Fix memory size for AVX512 gather/scatter.

H.J. Lu hjl.tools@gmail.com
Thu Mar 20 17:23:00 GMT 2014


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.



More information about the Binutils mailing list