diff options
author | Peter Bergner <bergner@linux.ibm.com> | 2020-05-11 09:27:48 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-11 21:08:36 +0930 |
commit | 1224c05de4d662639e9da6bfdc4f89de4cb1de6c (patch) | |
tree | ba51f7ac06c11fc4775e6376efeb716cbc38efb2 /gas | |
parent | 6bbb0c0595660e6bc7477126a5b1adaf5387d006 (diff) | |
download | gdb-1224c05de4d662639e9da6bfdc4f89de4cb1de6c.zip gdb-1224c05de4d662639e9da6bfdc4f89de4cb1de6c.tar.gz gdb-1224c05de4d662639e9da6bfdc4f89de4cb1de6c.tar.bz2 |
Power10 Add new L operand to the slbiag instruction
opcodes/
* ppc-opc.c (powerpc_opcodes) <slbiag>: Add variant with L operand.
gas/
* testsuite/gas/ppc/power10.s: New test.
* testsuite/gas/ppc/power10.d: Likewise.
* testsuite/gas/ppc/ppc.exp: Run it.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power10.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power10.s | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/ppc.exp | 1 |
4 files changed, 25 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 06d0b26..14b4c6f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-05-11 Peter Bergner <bergner@linux.ibm.com> + + * testsuite/gas/ppc/power10.s: New test. + * testsuite/gas/ppc/power10.d: Likewise. + * testsuite/gas/ppc/ppc.exp: Run it. + 2020-05-11 Alan Modra <amodra@gmail.com> * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10 diff --git a/gas/testsuite/gas/ppc/power10.d b/gas/testsuite/gas/ppc/power10.d new file mode 100644 index 0000000..5d8198d --- /dev/null +++ b/gas/testsuite/gas/ppc/power10.d @@ -0,0 +1,13 @@ +#as: -mpower10 +#objdump: -dr -Mpower10 +#name: POWER10 tests + +.* + +Disassembly of section \.text: + +0+0 <_start>: +.*: (7d 40 06 a4|a4 06 40 7d) slbiag r10 +.*: (7d 40 06 a4|a4 06 40 7d) slbiag r10 +.*: (7d 41 06 a4|a4 06 41 7d) slbiag r10,1 +#pass diff --git a/gas/testsuite/gas/ppc/power10.s b/gas/testsuite/gas/ppc/power10.s new file mode 100644 index 0000000..9e7daf5 --- /dev/null +++ b/gas/testsuite/gas/ppc/power10.s @@ -0,0 +1,5 @@ + .text +_start: + slbiag 10 + slbiag 10,0 + slbiag 10,1 diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index bb1ce2a..6426996 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -120,6 +120,7 @@ run_dump_test "power6" run_dump_test "power7" run_dump_test "power8" run_dump_test "power9" +run_dump_test "power10" run_dump_test "vsx" run_dump_test "vsx2" run_dump_test "vsx3" |