This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH][SPARC] gas,opcodes: fix hardware capabilities bumping in the sparc assembler.
- From: jose dot marchesi at oracle dot com (Jose E. Marchesi)
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 22 Nov 2016 13:54:33 +0100
- Subject: Re: [PATCH][SPARC] gas,opcodes: fix hardware capabilities bumping in the sparc assembler.
- Authentication-results: sourceware.org; auth=none
- References: <87y40gdf69.fsf@oracle.com> <6a87f863-8201-e57f-9095-eb2f150dccd9@redhat.com>
> gas/ChangeLog:
>
> 2016-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
>
> * config/tc-sparc.c: Move HWS_* and HWS2_* definitions to
> opcodes/sparc-opc.c.
> (sparc_arch): Clarify the new role of the hwcap_allowed and
> hwcap2_allowed fields.
> (sparc_arch_table): Remove HWS_* and HWS2_* instances from
> hwcap_allowed and hwcap2_allowed respectively.
> (md_parse_option): Include the opcode arch hwcaps when processing
> -A.
> (sparc_ip): Use the current opcode arch hwcaps to update
> hwcap_allowed, as well of the hwcaps of the instruction triggering
> the bump.
> * testsuite/gas/sparc/hwcaps-bump.s: New file.
> * testsuite/gas/sparc/hwcaps-bump.l: Likewise.
> * testsuite/gas/sparc/sparc.exp (gas_64_check): Run tests in
> hwcaps-bump.
>
> include/ChangeLog:
>
> 2016-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
>
> * opcode/sparc.h (sparc_opcode_arch): New fields hwcaps and
> hwcaps2.
>
> opcodes/ChangeLog:
>
> 2016-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
>
> * sparc-opc.c (HWS_V8): Definition moved from
> gas/config/tc-sparc.c.
> (HWS_V9): Likewise.
> (HWS_VA): Likewise.
> (HWS_VB): Likewise.
> (HWS_VC): Likewise.
> (HWS_VD): Likewise.
> (HWS_VE): Likewise.
> (HWS_VV): Likewise.
> (HWS_VM): Likewise.
> (HWS2_VM): Likewise.
> (sparc_opcode_archs): Initialize hwcaps and hwcaps2 fields of
Approved - please apply.
Applied to master.
Thanks.