From: Jeffrey A Law Date: Tue, 12 Oct 1999 05:38:53 +0000 (+0000) Subject: haifa-sched.c (insn_unit): Fix typo on out of range test. X-Git-Tag: releases/gcc-2.95.2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8650dafc19d2a48f2d81b58ec6d20efd7d4b76e6;p=thirdparty%2Fgcc.git haifa-sched.c (insn_unit): Fix typo on out of range test. Tue Aug 17 22:06:11 1999 Jan Hubicka * haifa-sched.c (insn_unit): Fix typo on out of range test. * sched.c (insn_unit): Likewise. Bring over from teh mainline sources. From-SVN: r29909 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eadf526b73de..d7b339d71094 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 11 23:35:19 1999 Jeffrey A Law (law@cygnus.com) + + Tue Aug 17 22:06:11 1999 Jan Hubicka + * haifa-sched.c (insn_unit): Fix typo on out of range test. + * sched.c (insn_unit): Likewise. + Sun Oct 10 20:58:27 1999 David Edelsohn * rs6000.md (scc patterns): Disable most SImode variants if diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index d4d2121a9d5d..421447692019 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -2849,7 +2849,7 @@ insn_unit (insn) range, don't cache it. */ if (FUNCTION_UNITS_SIZE < HOST_BITS_PER_SHORT || unit >= 0 - || (~unit & ((1 << (HOST_BITS_PER_SHORT - 1)) - 1)) == 0) + || (unit & ~((1 << (HOST_BITS_PER_SHORT - 1)) - 1)) == 0) INSN_UNIT (insn) = unit; } return (unit > 0 ? unit - 1 : unit); diff --git a/gcc/sched.c b/gcc/sched.c index e8cd070e45c8..f09a68ae3694 100644 --- a/gcc/sched.c +++ b/gcc/sched.c @@ -587,7 +587,7 @@ insn_unit (insn) range, don't cache it. */ if (FUNCTION_UNITS_SIZE < HOST_BITS_PER_SHORT || unit >= 0 - || (~unit & ((1 << (HOST_BITS_PER_SHORT - 1)) - 1)) == 0) + || (unit & ~((1 << (HOST_BITS_PER_SHORT - 1)) - 1)) == 0) INSN_UNIT (insn) = unit; } return (unit > 0 ? unit - 1 : unit);