diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-18 05:06:43 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-18 05:06:43 +0000 |
commit | 7c194585e5b8566c981a1b9f05b1f77bab68febf (patch) | |
tree | 335c004d1a6bf911f278f3e37758c406f1f8e4b4 /gcc/haifa-sched.c | |
parent | dcaf19ea7154e7c4614e4deba73dba598a76ff16 (diff) | |
download | gcc-7c194585e5b8566c981a1b9f05b1f77bab68febf.tar.gz |
Jan Hubicka <hubicka@freesoft.cz>
* haifa-sched.c (insn_unit): Fix typo on out of range test.
* sched.c (insn_unit): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28744 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 1341338f307..0521660cd56 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); |