]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Update -maltivec and -mvsx options to only enable their oldest instructions. binutils-2_27-branch
authorPeter Bergner <bergner@vnet.ibm.com>
Thu, 9 Mar 2017 02:49:03 +0000 (20:49 -0600)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Mar 2017 08:42:12 +0000 (19:12 +1030)
commitb5d3ac25628b1a16409a9816623c34a45377d400
tree857263271259ec90c099feeac061e8704a4e4b94
parentea5189f99474364e6f0d066e5da2960e56596e4b
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.

opcodes/
* ppc-dis.c (ppc_opts) <altivec>: Do not use PPC_OPCODE_ALTIVEC2;
<vsx>: Do not use PPC_OPCODE_VSX3;

gas/
* testsuite/gas/ppc/altivec2.d (as): Use the -mpower8 option.
(objdump): Use the -Mpower8 option.
gas/ChangeLog
gas/testsuite/gas/ppc/altivec2.d
opcodes/ChangeLog
opcodes/ppc-dis.c