]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
haifa-sched.c (insn_unit): Fix typo on out of range test.
authorJeffrey A Law <law@cygnus.com>
Tue, 12 Oct 1999 05:38:53 +0000 (05:38 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 12 Oct 1999 05:38:53 +0000 (23:38 -0600)
        Tue Aug 17 22:06:11 1999  Jan Hubicka  <hubicka@freesoft.cz>
        * 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

gcc/ChangeLog
gcc/haifa-sched.c
gcc/sched.c

index eadf526b73de9bcae8488f27268db01a74845355..d7b339d710948ff080222ec8c6deca68b146e56e 100644 (file)
@@ -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  <hubicka@freesoft.cz>
+       * 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  <edelsohn@gnu.org>
 
        * rs6000.md (scc patterns): Disable most SImode variants if
index d4d2121a9d5d920c4d464e7f0202376b1e5e7068..421447692019f04698a9e8887a5ef989c3fec482 100644 (file)
@@ -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);
index e8cd070e45c8c9885fe9f949b6e95b9a9fc0df85..f09a68ae36944b635a1727103e701c90e59bcfb3 100644 (file)
@@ -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);