unicorn/qemu/target
Joseph Myers ad83656acc target/i386: fix fscale handling of infinite exponents
The fscale implementation passes infinite exponents through to generic
code that rounds the exponent to a 32-bit integer before using
floatx80_scalbn. In round-to-nearest mode, and ignoring exceptions,
this works in many cases. But it fails to handle the special cases of
scaling 0 by a +Inf exponent or an infinity by a -Inf exponent, which
should produce a NaN, and because it produces an inexact result for
finite nonzero numbers being scaled, the result is sometimes incorrect
in other rounding modes. Add appropriate handling of infinite
exponents to produce a NaN or an appropriately signed exact zero or
infinity as a result

Backports commit c1c5fb8f9067c830e36830c2b82c0ec146c03d7b from qemu
2020-06-15 13:04:46 -04:00
..
arm target/arm: Use a non-overlapping group for misc control 2020-06-15 12:52:48 -04:00
i386 target/i386: fix fscale handling of infinite exponents 2020-06-15 13:04:46 -04:00
m68k target/m68k: implement opcode fetoxm1 2020-06-14 21:13:29 -04:00
mips target/mips: Support variable page size 2020-06-14 21:09:51 -04:00
riscv target/riscv: Add the lowRISC Ibex CPU 2020-06-14 22:28:55 -04:00
sparc softfloat: Name compare relation enum 2020-05-21 18:08:52 -04:00