ppc/svp64: introduce SVP64 opcode lookup
[binutils-gdb.git] / include / opcode / ppc.h
index 36d0cb1f44008587341524d2d9bbffbe2c539feb..1f2a4b14fdec5d50de795ebb65eb03733906e2af 100644 (file)
@@ -273,6 +273,10 @@ extern const unsigned int spe2_num_opcodes;
 /* A macro used to hash 8-byte PREFIX instructions.  */
 #define PPC_PREFIX_SEG(i) (PPC_OP (i) >> 1)
 
+/* A macro to extract the major opcode from an SVP64 instruction.
+   This is PPC-compatible due to the way SVP64 remaps instructions.  */
+#define SVP64_OP(i) PPC_OP (PPC_GET_SUFFIX (i))
+
 \f
 /* The operands table is an array of struct powerpc_operand.  */