]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/common/sim-fpu.c
import gdb-1999-09-21
[thirdparty/binutils-gdb.git] / sim / common / sim-fpu.c
index abf746a9b685d47af860429cc7b4e02ca744ac06..99381e06b179ad013b019859b61c442fbca2f5df 100644 (file)
@@ -541,7 +541,7 @@ i2fpu (sim_fpu *f, signed64 i, int is_64bit)
        {
          do 
            {
-             f->fraction >>= 1;
+             f->fraction = (f->fraction >> 1) | (f->fraction & 1);
              f->normal_exp += 1;
            }
          while (f->fraction >= IMPLICIT_2);