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: ENTER/BOUND operands order.


>>> On 23.01.14 at 11:37, "Michael V. Zolotukhin" <michael.v.zolotukhin@gmail.com> wrote:
> Could you please comment what is wrong with these insns?
>> 	# Disp8 scaled by 8 rather than 4
>> 	vpmuldq		zmm0, zmm0, [edx+4]{1to8}
>> 	vpmuldq		zmm0, zmm0, [edx+8]{1to8}
>> 	vpmuludq	zmm0, zmm0, [edx+4]{1to8}
>> 	vpmuludq	zmm0, zmm0, [edx+8]{1to8}
> According to the documentation, they have EVEX.W=1, so the displacement is 8
> rather than 4.  It seems correct.

I don't think EVEX.W determines the scaling factor here. The
input consists of dword elements, hence the scaling ought to
be 4. I think the manual even states so (but I didn't re-check).

Jan


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