]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Power10 dcbf, sync, and wait extensions.
authorPeter Bergner <bergner@linux.ibm.com>
Tue, 19 May 2020 23:09:51 +0000 (18:09 -0500)
committerPeter Bergner <bergner@linux.ibm.com>
Tue, 19 May 2020 23:09:51 +0000 (18:09 -0500)
commit3d205eb4481c3add674166f716fc052b6fdcbf2e
treee85bb606b4255824ac1f000c016e50efdac6c49b
parent3c568b8afab512d12eb5adcf304e505b1bce644d
Power10 dcbf, sync, and wait extensions.

opcodes/
* ppc-opc.c (insert_ls, extract_ls): Handle 3-bit L fields and new
WC values on POWER10 sync, dcbf  and wait instructions.
(insert_pl, extract_pl): New functions.
(L2OPT, LS, WC): Use insert_ls and extract_ls.
(LS3): New , 3-bit L for sync.
(LS3, L3OPT): New, 3-bit L for sync and dcbf.
(SC2, PL): New, 2-bit SC and PL for sync and wait.
(XWCPL_MASK, XL3RT_MASK, XSYNCLS_MASK): New instruction masks.
(XOPL3, XWCPL, XSYNCLS): New opcode macros.
(powerpc_opcodes) <dcbflp, dcbfps, dcbstps pause_short, phwsync,
plwsync, stcisync, stncisync, stsync, waitrsv>: New extended mnemonics.
<wait>: Enable PL operand on POWER10.
<dcbf>: Enable L3OPT operand on POWER10.
<sync>: Enable SC2 operand on POWER10.

gas/
* testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
* testsuite/gas/ppc/power9.d: Likewise.
* testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
sync, wait, waitrsv>: Add tests.
* testsuite/gas/ppc/power10.d: Likewise.
gas/ChangeLog
gas/testsuite/gas/ppc/power10.d
gas/testsuite/gas/ppc/power10.s
gas/testsuite/gas/ppc/power9.d
gas/testsuite/gas/ppc/power9.s
opcodes/ChangeLog
opcodes/ppc-opc.c