https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91816
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Stam Markianos-Wright <stamm...@gcc.gnu.org>: https://gcc.gnu.org/g:6b7ab0e565d79a7e6ae5dbbf17a5eb4eafe56dc8 commit r9-9081-g6b7ab0e565d79a7e6ae5dbbf17a5eb4eafe56dc8 Author: Stam Markianos-Wright <stam.markianos-wri...@arm.com> Date: Mon Nov 30 11:05:30 2020 +0000 Backport of the patch for PR target/91816 This is a patch for an issue where the compiler was generating a conditional branch in Thumb2, which was too far for b{cond} to handle. This backport also includes the subsequent fixes to the test in this patch. gcc/ChangeLog * config/arm/arm-protos.h: New function arm_gen_far_branch prototype. * config/arm/arm.c (arm_gen_far_branch): New function arm_gen_far_branch. * config/arm/arm.md: Update b<cond> for Thumb2 range checks. gcc/testsuite/ChangeLog * gcc.target/arm/pr91816.c: New test.