diff options
author | Peter Bergner <bergner@linux.ibm.com> | 2021-09-25 18:21:17 -0500 |
---|---|---|
committer | Peter Bergner <bergner@linux.ibm.com> | 2021-09-25 18:21:17 -0500 |
commit | 4d5d5d4689541d0522cdadf3df4a550954bc2e9f (patch) | |
tree | 47edda141a0b58e5a72e6ae5de6b5017f2d97e45 /gas | |
parent | 98bf5c02cfe9d13428a55c0da8d5f150d7c1fc54 (diff) | |
download | gdb-4d5d5d4689541d0522cdadf3df4a550954bc2e9f.zip gdb-4d5d5d4689541d0522cdadf3df4a550954bc2e9f.tar.gz gdb-4d5d5d4689541d0522cdadf3df4a550954bc2e9f.tar.bz2 |
PowerPC: Enable mfppr mfppr32, mtppr and mtppr32 extended mnemonics on POWER5
SPR 896 and the mfppr mfppr32, mtppr and mtppr32 extended mnemonics were added
in ISA 2.03, so enable them on POWER5 and later.
opcodes/
* ppc-opc.c (powerpc_opcodes) <mfppr, mfppr32, mtppr, mtppr32>: Enable
on POWER5 and later.
gas/
* testsuite/gas/ppc/power5.s: New test.
* testsuite/gas/ppc/power5.d: Likewise.
* testsuite/gas/ppc/ppc.exp: Run it.
* testsuite/gas/ppc/power7.s: Remove tests for mfppr, mfppr32, mtppr
and mtppr32.
* testsuite/gas/ppc/power7.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power5.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power5.s | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power7.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power7.s | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/ppc.exp | 1 |
6 files changed, 30 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index a19515a..35d62ce 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +2021-09-25 Peter Bergner <bergner@linux.ibm.com> + + * testsuite/gas/ppc/power5.s: New test. + * testsuite/gas/ppc/power5.d: Likewise. + * testsuite/gas/ppc/ppc.exp: Run it. + * testsuite/gas/ppc/power7.s: Remove tests for mfppr, mfppr32, mtppr + and mtppr32. + * testsuite/gas/ppc/power7.d: Likewise. + 2021-09-13 Jan Beulich <jbeulich@suse.com> * config/tc-ia64.c (cross_section): Use obj_elf_section_name to diff --git a/gas/testsuite/gas/ppc/power5.d b/gas/testsuite/gas/ppc/power5.d new file mode 100644 index 0000000..e46cea4 --- /dev/null +++ b/gas/testsuite/gas/ppc/power5.d @@ -0,0 +1,14 @@ +#as: -mpower5 +#objdump: -dr -Mpower5 +#name: POWER5 tests + +.* + +Disassembly of section \.text: + +0+00 <power5>: +.*: (7d 40 e2 a6|a6 e2 40 7d) mfppr r10 +.*: (7d 62 e2 a6|a6 e2 62 7d) mfppr32 r11 +.*: (7d 80 e3 a6|a6 e3 80 7d) mtppr r12 +.*: (7d a2 e3 a6|a6 e3 a2 7d) mtppr32 r13 +#pass diff --git a/gas/testsuite/gas/ppc/power5.s b/gas/testsuite/gas/ppc/power5.s new file mode 100644 index 0000000..8bf65ff --- /dev/null +++ b/gas/testsuite/gas/ppc/power5.s @@ -0,0 +1,6 @@ + .text +power5: + mfppr 10 + mfppr32 11 + mtppr 12 + mtppr32 13 diff --git a/gas/testsuite/gas/ppc/power7.d b/gas/testsuite/gas/ppc/power7.d index a2e6df4..bb8d87f 100644 --- a/gas/testsuite/gas/ppc/power7.d +++ b/gas/testsuite/gas/ppc/power7.d @@ -103,9 +103,5 @@ Disassembly of section \.text: .*: (7f bd eb 78|78 eb bd 7f) mdoio .*: (7f de f3 78|78 f3 de 7f) mdoom .*: (7f de f3 78|78 f3 de 7f) mdoom -.*: (7d 40 e2 a6|a6 e2 40 7d) mfppr r10 -.*: (7d 62 e2 a6|a6 e2 62 7d) mfppr32 r11 -.*: (7d 80 e3 a6|a6 e3 80 7d) mtppr r12 -.*: (7d a2 e3 a6|a6 e3 a2 7d) mtppr32 r13 .*: (7d 60 52 64|64 52 60 7d) tlbie r10,r11 #pass diff --git a/gas/testsuite/gas/ppc/power7.s b/gas/testsuite/gas/ppc/power7.s index b811112..4f76783 100644 --- a/gas/testsuite/gas/ppc/power7.s +++ b/gas/testsuite/gas/ppc/power7.s @@ -94,8 +94,4 @@ power7: or 29,29,29 mdoom or 30,30,30 - mfppr 10 - mfppr32 11 - mtppr 12 - mtppr32 13 tlbie 10,11 diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index b5ce36d..dcf4f74 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -116,6 +116,7 @@ run_dump_test "e500mc64_nop" run_dump_test "e5500_nop" run_dump_test "e6500_nop" run_dump_test "power4_32" +run_dump_test "power5" run_dump_test "power6" run_dump_test "power7" run_dump_test "power8" |