diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-23 14:27:55 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-23 14:27:55 +0000 |
commit | 8c1faadbb3f2d0bde9680983f1616a60183a3861 (patch) | |
tree | 5f173c9800d941b37a345050cd6afd29394d04d5 /libgcc | |
parent | aef9f8a4ca79b78968415051799b059956d9c689 (diff) | |
download | gcc-8c1faadbb3f2d0bde9680983f1616a60183a3861.tar.gz |
Remove redundant tests
PR libgcc/61685
* bid128_fma.c (rounding_correction): Remove redundant tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212942 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config/libbid/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/config/libbid/bid128_fma.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/libgcc/config/libbid/ChangeLog b/libgcc/config/libbid/ChangeLog index 9405a3a2a8d..9d07810b9e5 100644 --- a/libgcc/config/libbid/ChangeLog +++ b/libgcc/config/libbid/ChangeLog @@ -1,3 +1,8 @@ +2014-07-23 Marius Cornea <marius.cornea@intel.com> + + PR libgcc/61685 + * bid128_fma.c (rounding_correction): Remove redundant tests. + 2014-06-10 Uros Bizjak <ubizjak@gmail.com> * bid128_div.c (BID128_FUNCTION_ARG2): Remove unused variable 'Ql'. diff --git a/libgcc/config/libbid/bid128_fma.c b/libgcc/config/libbid/bid128_fma.c index 5f9879f04e3..7ddd53bebe1 100644 --- a/libgcc/config/libbid/bid128_fma.c +++ b/libgcc/config/libbid/bid128_fma.c @@ -93,10 +93,8 @@ rounding_correction (unsigned int rnd_mode, // exp = exp - EXP_P1; unbexp = unbexp - 1; exp = (UINT64) (unbexp + 6176) << 49; - } else { // if exp = 0 - if (is_midpoint_lt_even || is_midpoint_lt_even || - is_inexact_gt_midpoint || is_inexact_gt_midpoint) // tiny & inexact - *ptrfpsf |= UNDERFLOW_EXCEPTION; + } else { // if exp = 0 the result is tiny & inexact + *ptrfpsf |= UNDERFLOW_EXCEPTION; } } } else { |