Correct powerpc spe opcode lookup
authorAlan Modra <amodra@gmail.com>
Mon, 7 May 2018 02:05:22 +0000 (11:35 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 8 May 2018 12:58:44 +0000 (22:28 +0930)
commitf413a91378902aadbe4e338a6dc8f33f5f7148a0
tree07530badfb8696ab6121104e32e5b3e4f9683eae
parent7785df4880f3828db8cf1715038127e6b858a670
Correct powerpc spe opcode lookup

Defining SPE2_OPCD_SEGS as 13 discounts the possibility that we'd
ever look up spe2_opcd_indices[14..16], which I think is possible.
Extend that array to size 16+1, using the macros we use to index the
array.  Similarly use the index macros for PPC_OPCD_SEGS and
VLE_OPCD_SEGS.

* ppc-dis.c (PPC_OPCD_SEGS): Define using PPC_OP.
(VLE_OPCD_SEGS, SPE2_OPCD_SEGS): Similarly, using macros used to
partition opcode space for index lookup.
opcodes/ChangeLog
opcodes/ppc-dis.c