From 5472d00b23e73c0da5f1ea4becf13f7e7fb1f62e Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Wed, 1 Jun 1994 08:52:15 +0000 Subject: [PATCH] (short_branch): Convert length calculations to bytes From-SVN: r7414 --- gcc/config/arm/arm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e8775493dc47..dae7f9825bce 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -796,9 +796,9 @@ int short_branch (from, to) int from, to; { - int delta = insn_addresses[from] + 2 - insn_addresses[to]; + int delta = insn_addresses[from] + 8 - insn_addresses[to]; - return abs (delta) < 245; /* A small margin for safety */ + return abs (delta) < 980; /* A small margin for safety */ } /* Check to see that the insn isn't the target of the conditionalizing -- 2.47.2