Commit 77b91512 by Richard Kenner Committed by Richard Kenner

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

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

From-SVN: r34410
parent bde8e564
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.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment