summaryrefslogtreecommitdiffstats
path: root/fpu
diff options
context:
space:
mode:
authorTaylor Simpson2021-04-09 03:07:38 +0200
committerRichard Henderson2021-05-01 17:31:43 +0200
commitc0336c87b773614eebd23714e3a866bfcd78e9f2 (patch)
tree755b6f06f063fe06aa280a17e64f6162f6facfea /fpu
parentHexagon (target/hexagon) change type of softfloat_roundingmodes (diff)
downloadqemu-c0336c87b773614eebd23714e3a866bfcd78e9f2.tar.gz
qemu-c0336c87b773614eebd23714e3a866bfcd78e9f2.tar.xz
qemu-c0336c87b773614eebd23714e3a866bfcd78e9f2.zip
Hexagon (target/hexagon) use softfloat default NaN and tininess
Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <1617930474-31979-11-git-send-email-tsimpson@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'fpu')
-rw-r--r--fpu/softfloat-specialize.c.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc
index c2f87addb2..9ea318f3e2 100644
--- a/fpu/softfloat-specialize.c.inc
+++ b/fpu/softfloat-specialize.c.inc
@@ -145,6 +145,9 @@ static FloatParts parts_default_nan(float_status *status)
#elif defined(TARGET_HPPA)
/* snan_bit_is_one, set msb-1. */
frac = 1ULL << (DECOMPOSED_BINARY_POINT - 2);
+#elif defined(TARGET_HEXAGON)
+ sign = 1;
+ frac = ~0ULL;
#else
/* This case is true for Alpha, ARM, MIPS, OpenRISC, PPC, RISC-V,
* S390, SH4, TriCore, and Xtensa. I cannot find documentation