]> git.ipfire.org Git - thirdparty/gcc.git/commit
AArch64: add constants for branch displacements
authorKarl Meakin <karl.meakin@arm.com>
Thu, 3 Jul 2025 11:48:29 +0000 (12:48 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 3 Jul 2025 11:48:29 +0000 (12:48 +0100)
commit70905bad8ea7e9e5f807b54ad3fe183f643cdbf2
tree1a8a7a54c4e4c99e7d93f793d10d9686d608cae0
parent2cc9b03a84601b7951e5e0a24f5174387f564f27
AArch64: add constants for branch displacements

Extract the hardcoded values for the minimum PC-relative displacements
into named constants and document them.

gcc/ChangeLog:

* config/aarch64/aarch64.md (BRANCH_LEN_P_1MiB): New constant.
(BRANCH_LEN_N_1MiB): Likewise.
(BRANCH_LEN_P_32KiB): Likewise.
(BRANCH_LEN_N_32KiB): Likewise.
gcc/config/aarch64/aarch64.md