aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@freesoft.cz>1999-08-18 07:06:43 +0200
committerRichard Henderson <rth@gcc.gnu.org>1999-08-17 22:06:43 -0700
commit77f3d48acfa10e24eeda285d62f711761168a8e2 (patch)
tree335c004d1a6bf911f278f3e37758c406f1f8e4b4 /gcc/haifa-sched.c
parent0e403ec3e01988e07e1276610daddb7d73d0a96c (diff)
downloadgcc-77f3d48acfa10e24eeda285d62f711761168a8e2.zip
gcc-77f3d48acfa10e24eeda285d62f711761168a8e2.tar.gz
gcc-77f3d48acfa10e24eeda285d62f711761168a8e2.tar.bz2
Jan Hubicka <hubicka@freesoft.cz>
* haifa-sched.c (insn_unit): Fix typo on out of range test. * sched.c (insn_unit): Likewise. From-SVN: r28744
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 1341338..0521660 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -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);