This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Add CX16 flag to asm
CMPXCHG16B instruction, for which flag CX16 was introduced, is
available only in 64-bit mode, while test arch-10.s is for 32-bit mode
- do we need to change anything in it?
On 20 September 2012 01:53, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Wed, Sep 19, 2012 at 2:46 PM, Michael Zolotukhin
> <michael.v.zolotukhin@gmail.com> wrote:
>> Here is a patch with the tests - I didn't add new tests to arch-10.s,
>> as CMPXCHG16B is available only on 64 bits.
>>
>> Changelogs:
>> gas/Changelog:
>> 2012-09-19 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
>>
>> * config/tc-i386.c: Add CX16 flag.
>> * doc/c-i386.texi: Document the new flag.
>>
>> opcodes/Changelog:
>> 2012-09-19 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
>>
>> * i386-gen.c (cpu_flag_init): Add CpuCX16 and add the flag to
>> CPU_NOCONA_FLAGS, CPU_CORE_FLAGS, CPU_CORE2_FLAGS, CPU_COREI7_FLAGS,
>> CPU_BDVER1_FLAGS, CPU_BDVER2_FLAGS, CPU_BTVER1_FLAGS,
>> CPU_BTVER2_FLAGS.
>> (cpu_flags): Add CpuCX16.
>> * i386-opc.h: Add CpuCX16.
>> * i386-opc.tbl: Use new flag in CMPXCHG16B.
>> * i386-tbl.h: Regenerate.
>> * i386-init.h: Likewise.
>>
>> gas/testsuite/Changelog:
>> 2012-09-19 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
>>
>> * gas/i386/x86-64-arch-2.s: Add test for CMPXCHG16B.
>> * gas/i386/x86-64-arch-2.d: Update correspondingly.
>> * gas/i386/x86-64-arch-2-bdver2.d: Likewise.
>> * gas/i386/x86-64-arch-2-btver1.d: Likewise.
>> * gas/i386/x86-64-arch-2-btver2.d: Likewise.
>> * gas/i386/x86-64-arch-2-lzcnt.d: Likewise.
>> * gas/i386/x86-64-arch-2-prefetchw.d: Likewise.
>> * gas/i386/ilp32/x86-64-arch-2.d: Likewise.
>
> I didn't see arch-10.s changes.
>
>
> --
> H.J.
--
---
Best regards,
Michael V. Zolotukhin,
Software Engineer
Intel Corporation.