]> 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 11:05:30 +0000 (11:05 +0000)
committerStam Markianos-Wright <stam.markianos-wright@arm.com>
Mon, 30 Nov 2020 11:10:07 +0000 (11:10 +0000)
commit6b7ab0e565d79a7e6ae5dbbf17a5eb4eafe56dc8
tree28601e482a8cd477d9c7ab234227ef407244b92b
parent90ed2b9e92fe62b7d4c11105f16e5ea0fd26c1a7
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.
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.063092 seconds and 6 git commands to generate.