diff options
author | Faraz Shahbazker <fshahbazker@wavecomp.com> | 2022-02-02 11:17:22 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-04 19:37:25 -0500 |
commit | bf484e93483776072291c5cad2e289567d74c818 (patch) | |
tree | c835425923f43be579228b97ca2b5b0688887e54 /multilib.am | |
parent | eb06e60a982e3903161252edf8fb8ae0c018c467 (diff) | |
download | fsf-binutils-gdb-bf484e93483776072291c5cad2e289567d74c818.zip fsf-binutils-gdb-bf484e93483776072291c5cad2e289567d74c818.tar.gz fsf-binutils-gdb-bf484e93483776072291c5cad2e289567d74c818.tar.bz2 |
sim: Allow toggling of quiet NaN-bit semantics
IEEE754-1985 specifies the top bit of the mantissa as an indicator
of signalling vs. quiet NaN, but does not define the precise semantics.
Most architectures treat this bit as indicating quiet NaN, but legacy
(pre-R6) MIPS goes the other way and treats it as signalling NaN.
This used to be controlled by a macro that was only defined for MIPS.
This patch replaces the macro with a variable to track the current
semantics of the NaN bit and allows differentiation between older
(pre-R6) and and newer MIPS cores.
2022-02-01 Faraz Shahbazker <fshahbazker@wavecomp.com>
sim/common/ChangeLog:
* sim-fpu.c (_sim_fpu): New.
(pack_fpu, unpack_fpu): Allow reversal of quiet NaN semantics.
* sim-fpu.h (sim_fpu_state): New struct.
(_sim_fpu): New extern.
(sim_fpu_quiet_nan_inverted): New define.
sim/mips/ChangeLog:
* cp1.h (fcsr_NAN2008_mask, fcsr_NAN2008_shift): New.
* mips.igen (check_fpu): Select default quiet NaN mode
for legacy MIPS.
* sim-main.h (SIM_QUIET_NAN_NEGATED): Remove.
Diffstat (limited to 'multilib.am')
0 files changed, 0 insertions, 0 deletions