Jan Hubicka <hubicka@freesoft.cz>
authorJan Hubicka <hubicka@freesoft.cz>
Wed, 18 Aug 1999 05:06:43 +0000 (07:06 +0200)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 18 Aug 1999 05:06:43 +0000 (22:06 -0700)
        * haifa-sched.c (insn_unit): Fix typo on out of range test.
        * sched.c (insn_unit): Likewise.

From-SVN: r28744

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

index f47730dede39679933b444eec6cfceaeed69405e..63fe40b5195c897c062eee00e0e59c2d6257dae4 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 Tue Aug 17 21:57:23 1999  Andreas Schwab  <schwab@suse.de>
 
        * combine.c (distribute_notes): Handle REG_EH_RETHROW.
index 1341338f307ea817ede11ecfd4616b7dac815fb1..0521660cd56969e757a4f4fccb150ec39ffedfb5 100644 (file)
@@ -2847,7 +2847,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 20ca1e74e1075db23cd8e4ba2604e7b2454ae084..21bb4b61d12d368dc3ba9657d5d160ae10860c29 100644 (file)
@@ -588,7 +588,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);