]> git.ipfire.org Git - thirdparty/gcc.git/commit
AArch64: make rules for CBZ/TBZ higher priority
authorKarl Meakin <karl.meakin@arm.com>
Thu, 3 Jul 2025 11:48:34 +0000 (12:48 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 3 Jul 2025 11:48:34 +0000 (12:48 +0100)
commit44b9769593ac8bb01f869e0505f447d9dfe8add5
treeb990bf21038c374b35a64473ce97886fe16b7f3a
parent2e95ef6ca3e97b8d66110b3d0cdc144dec56fb3b
AArch64: make rules for CBZ/TBZ higher priority

Move the rules for CBZ/TBZ to be above the rules for
CBB<cond>/CBH<cond>/CB<cond>. We want them to have higher priority
because they can express larger displacements.

gcc/ChangeLog:

* config/aarch64/aarch64.md (aarch64_cbz<optab><mode>1): Move
above rules for CBB<cond>/CBH<cond>/CB<cond>.
(*aarch64_tbz<optab><mode>1): Likewise.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/cmpbr.c: Update tests.
gcc/config/aarch64/aarch64.md
gcc/testsuite/gcc.target/aarch64/cmpbr.c