sparc.c (short_branch): Correct error in range computation.

* config/sparc/sparc.c (short_branch): Correct error in range
	computation.

From-SVN: r34410
This commit is contained in:
Richard Kenner 2000-06-05 18:04:53 +00:00 committed by Richard Kenner
parent bde8e56451
commit 77b9151288
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Mon Jun 5 14:06:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/sparc/sparc.c (short_branch): Correct error in range
computation.
2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* fixinc/inclhack.def: New include hacks for ultrix.

View file

@ -2625,10 +2625,12 @@ int
short_branch (uid1, uid2)
int uid1, uid2;
{
unsigned int delta = insn_addresses[uid1] - insn_addresses[uid2];
if (delta + 1024 < 2048)
int delta = insn_addresses[uid1] - insn_addresses[uid2];
/* Leave a few words of "slop". */
if (delta >= -1023 && delta <= 1022)
return 1;
/* warning ("long branch, distance %d", delta); */
return 0;
}