From 7c1f42273567c30e17e1363897ce5c6d0764c643 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 11 May 2020 09:24:14 +0930 Subject: PowerPC Rename powerxx to power10 Now that ISA3.1 is out we can finish with the powerxx silliness. bfd/ * elf64-ppc.c: Rename powerxx to power10 throughout. gas/ * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10 renaming. * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in place of -mfuture/-Mfuture. * testsuite/gas/ppc/prefix-pcrel.d: Likewise. * testsuite/gas/ppc/prefix-reloc.d: Likewise. gold/ * powerpc.cc: Rename powerxx to power10 throughout. include/ * elf/ppc64.h: Update comment. * opcode/ppc.h (PPC_OPCODE_POWER10): Rename from PPC_OPCODE_POWERXX. ld/ * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in place of -mfuture/-Mfuture. * testsuite/ld-powerpc/notoc2.d: Likewise. * testsuite/ld-powerpc/powerpc.exp: Likewise. * testsuite/ld-powerpc/tlsgd.d: Likewise. * testsuite/ld-powerpc/tlsie.d: Likewise. * testsuite/ld-powerpc/tlsld.d: Likewise. opcodes/ * ppc-dis.c (ppc_opts): Add "power10" entry. (print_insn_powerpc): Update for PPC_OPCODE_POWER10 renaming. * ppc-opc.c (POWER10): Rename from POWERXX. Update all uses. --- gas/ChangeLog | 9 +++++++++ gas/config/tc-ppc.c | 2 +- gas/testsuite/gas/ppc/prefix-align.d | 6 +++--- gas/testsuite/gas/ppc/prefix-pcrel.d | 6 +++--- gas/testsuite/gas/ppc/prefix-reloc.d | 4 ++-- 5 files changed, 18 insertions(+), 9 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index 842642b..06d0b26 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +2020-05-11 Alan Modra + + * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10 + renaming. + * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in + place of -mfuture/-Mfuture. + * testsuite/gas/ppc/prefix-pcrel.d: Likewise. + * testsuite/gas/ppc/prefix-reloc.d: Likewise. + 2020-05-06 Nick Clifton * po/sv.po: Updated Swedish translation. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 0b24298..e0da3bf 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -4131,7 +4131,7 @@ md_assemble (char *str) insn_length = 4; if ((ppc_cpu & PPC_OPCODE_VLE) != 0 && PPC_OP_SE_VLE (insn)) insn_length = 2; - else if ((opcode->flags & PPC_OPCODE_POWERXX) != 0 + else if ((opcode->flags & PPC_OPCODE_POWER10) != 0 && PPC_PREFIX_P (insn)) { struct insn_label_list *l; diff --git a/gas/testsuite/gas/ppc/prefix-align.d b/gas/testsuite/gas/ppc/prefix-align.d index b2e1b83..5afc7d6 100644 --- a/gas/testsuite/gas/ppc/prefix-align.d +++ b/gas/testsuite/gas/ppc/prefix-align.d @@ -1,6 +1,6 @@ -#as: -mfuture -#objdump: -dr -Mfuture -#name: POWERXX alignment of labels test +#as: -mpower10 +#objdump: -dr -Mpower10 +#name: POWER10 alignment of labels test .* diff --git a/gas/testsuite/gas/ppc/prefix-pcrel.d b/gas/testsuite/gas/ppc/prefix-pcrel.d index a0ca60f..ad6abfb 100644 --- a/gas/testsuite/gas/ppc/prefix-pcrel.d +++ b/gas/testsuite/gas/ppc/prefix-pcrel.d @@ -1,6 +1,6 @@ -#as: -mfuture -#objdump: -dr -Mfuture -#name: POWERXX pcrel tests +#as: -mpower10 +#objdump: -dr -Mpower10 +#name: POWER10 pcrel tests .* diff --git a/gas/testsuite/gas/ppc/prefix-reloc.d b/gas/testsuite/gas/ppc/prefix-reloc.d index 9f554ac..908ff22 100644 --- a/gas/testsuite/gas/ppc/prefix-reloc.d +++ b/gas/testsuite/gas/ppc/prefix-reloc.d @@ -1,5 +1,5 @@ -#as: -a64 -mfuture -#objdump: -dr -Mfuture +#as: -a64 -mpower10 +#objdump: -dr -Mpower10 #name: Prefix insn relocations .* -- cgit v1.1