]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(short_branch): Convert length calculations to bytes
authorRichard Earnshaw <erich@gnu.org>
Wed, 1 Jun 1994 08:52:15 +0000 (08:52 +0000)
committerRichard Earnshaw <erich@gnu.org>
Wed, 1 Jun 1994 08:52:15 +0000 (08:52 +0000)
From-SVN: r7414

gcc/config/arm/arm.c

index e8775493dc479a28d4ab71d16b19218fd14ae5a1..dae7f9825bce0f59e8615a86543760850d4054a8 100644 (file)
@@ -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