]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
aarch64: Add support for (M)ADDPT and (M)SUBPT instructions
authorYury Khrustalev <yury.khrustalev@arm.com>
Wed, 21 Feb 2024 12:52:23 +0000 (12:52 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 18 Mar 2024 16:54:06 +0000 (16:54 +0000)
commit4792a423d264cfb6dbb656ea97b1c84d1b4e55b6
treeb9ed74a4a37b8e8881e533325a9fa8777949532c
parentee0fa6627079ebd16843d9d3fb4e24a5af545ded
aarch64: Add support for (M)ADDPT and (M)SUBPT instructions

The following instructions are added in this patch:

 - ADDPT and SUBPT - Add/Subtract checked pointer
 - MADDPT and MSUBPT - Multiply Add/Subtract checked pointer

These instructions are part of Checked Pointer Arithmetic extension.
This patch adds assembler and disassembler support for these instructions
with relevant checks. Tests are included as well.

A new flag "+cpa" added to documentation. This flag enables CPA extension.

Regression tested on the aarch64-none-linux-gnu target and no regressions
have been found.
16 files changed:
gas/config/tc-aarch64.c
gas/doc/c-aarch64.texi
gas/testsuite/gas/aarch64/cpa-addsub-bad.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/cpa-addsub-bad.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/cpa-addsub-bad.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/cpa-addsub-neg.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/cpa-addsub-neg.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/cpa-addsub.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/cpa-addsub.s [new file with mode: 0644]
include/opcode/aarch64.h
opcodes/aarch64-asm.c
opcodes/aarch64-asm.h
opcodes/aarch64-dis.c
opcodes/aarch64-dis.h
opcodes/aarch64-opc.c
opcodes/aarch64-tbl.h