]> gcc.gnu.org Git - gcc.git/commit
Backport of the patch for PR target/91816
authorStam Markianos-Wright <stam.markianos-wright@arm.com>
Mon, 30 Nov 2020 10:47:54 +0000 (10:47 +0000)
committerStam Markianos-Wright <stam.markianos-wright@arm.com>
Mon, 30 Nov 2020 10:56:09 +0000 (10:56 +0000)
commit3a936a9ecddef58ad5b6ee11697c3f791b942708
treeffbd0b574b10fc78f8e4ae823a16d162e2000592
parentc715a3659873b5f6b449493f54a29c26d06dfd1c
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.
gcc/config/arm/arm-protos.h
gcc/config/arm/arm.c
gcc/config/arm/arm.md
gcc/testsuite/gcc.target/arm/pr91816.c [new file with mode: 0644]
This page took 0.061545 seconds and 6 git commands to generate.