This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, committed] Update GAS' -maltivec and -mvsx options to only enable the oldest version of their respective instruction sets
- From: Alan Modra <amodra at gmail dot com>
- To: Peter Bergner <bergner at vnet dot ibm dot com>
- Cc: binutils <binutils at sourceware dot org>, Cyril Bur <cyril dot bur at au1 dot ibm dot com>, Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- Date: Thu, 9 Mar 2017 19:25:18 +1030
- Subject: Re: [PATCH, committed] Update GAS' -maltivec and -mvsx options to only enable the oldest version of their respective instruction sets
- Authentication-results: sourceware.org; auth=none
- References: <bfd8cc9c-6bd1-afdb-f403-fd7c80b1dc9c@vnet.ibm.com>
On Wed, Mar 08, 2017 at 08:57:33PM -0600, Peter Bergner wrote:
> Update -maltivec and -mvsx options to only enable their oldest instructions.
>
> Currently, the -maltivec and -mvsx GAS options enable *all* of the altivec
> and vsx instructions respecitively that have ever been added. This is in
> constract to GCC's -maltivec and -mvsx options, which only enable the oldest
> (ie, first) set of altivec and vsx instructions. This patch changes GAS to
> mimic GCC's behaviour with respect to -maltivec and -mvsx and it solves a
> problem with trying to assemble the lxvx instruction which is different
> between POWER8 and POWER9.
I've pushed this to the 2.28 and 2.27 branches as well. 2.27 failed a
couple of tests when using gcc-7, fixed by cherry-picking a
.gnu.attributes patch from 2016-09-26.
--
Alan Modra
Australia Development Lab, IBM