[PATCH] PR gas/16488: Add test for incorrect memory operand for gather/scatter instructions.

Jan Beulich JBeulich@suse.com
Fri Jan 31 14:58:00 GMT 2014


>>> On 31.01.14 at 15:38, Michael Zolotukhin <michael.v.zolotukhin@gmail.com> wrote:
>>  You added 2 tests for AT&T syntax, but only 1 for
>> Intel syntax.  Any particular reason for this?
> Yes, the following test doesn't give an error:
>       vgatherqpd zmm6{k1}, ZMMWORD PTR [zmm3]
> I think it's because it is equivalent to something like vgatherqpd
> (,%zmm2,),%zmm6{%k1} (please note commas around zmm2), which also
> doesn't lead to an error.  I assume that in Intel syntax this test is
> regarded as a rich addressing mode, which is acceptable for
> gather/scatters. However, I'm not sure about this - please correct me
> if I'm wrong.

That's correct - the order of registers in a memory address can
get swapped if that results in a valid address.

Jan



More information about the Binutils mailing list