From 29a6701e530a4119d3c0d261da2b7b24034c9233 Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Mon, 12 Sep 2022 14:56:20 -0500 Subject: ppc: Document the -mfuture and -Mfuture options and make them usable The -mfuture and -Mfuture options which are used for adding potential new ISA instructions were not documented. They also lacked a bitmask so new instructions could not be enabled by those options. Fixed. binutils/ * doc/binutils.texi: Document -Mfuture. gas/ * config/tc-ppc.c: Document -mfuture * doc/c-ppc.texi: Likewise. include/ * opcode/ppc.h (PPC_OPCODE_FUTURE): Define. opcodes/ * ppc-dis.c (ppc_opts) : Use it. * ppc-opc.c (FUTURE): Define. --- opcodes/ppc-dis.c | 3 ++- opcodes/ppc-opc.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'opcodes') diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 97f2e20..3ba0627 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -208,7 +208,8 @@ struct ppc_mopt ppc_opts[] = { { "future", (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64 | PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 - | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX), + | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX + | PPC_OPCODE_FUTURE), 0 }, { "ppc", PPC_OPCODE_PPC, 0 }, diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 934b1bf..25c96ba 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -4847,6 +4847,7 @@ const unsigned int num_powerpc_operands = (sizeof (powerpc_operands) #define POWER8 PPC_OPCODE_POWER8 #define POWER9 PPC_OPCODE_POWER9 #define POWER10 PPC_OPCODE_POWER10 +#define FUTURE PPC_OPCODE_FUTURE #define CELL PPC_OPCODE_CELL #define PPC64 PPC_OPCODE_64 | PPC_OPCODE_64_BRIDGE #define NON32 (PPC_OPCODE_64 | PPC_OPCODE_POWER4 \ -- cgit v1.1