From: Jan Hubicka Date: Sat, 27 Dec 2014 15:18:05 +0000 (+0000) Subject: * sreal.h (sreal::shift): Fix sanity check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75e6bcac2f1f113dfbca7f1ae0460497835e2fae;p=gcc.git * sreal.h (sreal::shift): Fix sanity check. From-SVN: r219075 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8aab41455c2..3e1824f13a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-12-27 Jan hubicka + + * sreal.h (sreal::shift): Fix sanity check. + 2014-12-27 Uros Bizjak * config/i386/mmx.md (*vec_extractv2sf_1): Do not emit unpckhps. diff --git a/gcc/sreal.h b/gcc/sreal.h index 2bee542a68c..beaa5cd02b9 100644 --- a/gcc/sreal.h +++ b/gcc/sreal.h @@ -87,8 +87,8 @@ public: /* Zero needs no shifting. */ if (!m_sig) return *this; - gcc_checking_assert (s <= SREAL_BITS); - gcc_checking_assert (s >= -SREAL_BITS); + gcc_checking_assert (s <= SREAL_MAX_EXP); + gcc_checking_assert (s >= -SREAL_MAX_EXP); /* Overflows/drop to 0 could be handled gracefully, but hopefully we do not need to do so. */