https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91816
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Stam Markianos-Wright <stamm...@gcc.gnu.org>: https://gcc.gnu.org/g:3a936a9ecddef58ad5b6ee11697c3f791b942708 commit r8-10655-g3a936a9ecddef58ad5b6ee11697c3f791b942708 Author: Stam Markianos-Wright <stam.markianos-wri...@arm.com> Date: Mon Nov 30 10:47:54 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 PR target/91816 * 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 PR target/91816 * gcc.target/arm/pr91816.c: New test.