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:
parent
bde8e56451
commit
77b9151288
2 changed files with 10 additions and 3 deletions
|
@ -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>
|
2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
|
||||||
|
|
||||||
* fixinc/inclhack.def: New include hacks for ultrix.
|
* fixinc/inclhack.def: New include hacks for ultrix.
|
||||||
|
|
|
@ -2625,10 +2625,12 @@ int
|
||||||
short_branch (uid1, uid2)
|
short_branch (uid1, uid2)
|
||||||
int uid1, uid2;
|
int uid1, uid2;
|
||||||
{
|
{
|
||||||
unsigned int delta = insn_addresses[uid1] - insn_addresses[uid2];
|
int delta = insn_addresses[uid1] - insn_addresses[uid2];
|
||||||
if (delta + 1024 < 2048)
|
|
||||||
|
/* Leave a few words of "slop". */
|
||||||
|
if (delta >= -1023 && delta <= 1022)
|
||||||
return 1;
|
return 1;
|
||||||
/* warning ("long branch, distance %d", delta); */
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue