summaryrefslogtreecommitdiffstats
path: root/include/fpu
diff options
context:
space:
mode:
authorRichard Henderson2021-12-17 17:57:14 +0100
committerCédric Le Goater2021-12-17 17:57:14 +0100
commite706d4455b8d54252b11fc504c56df060151cb89 (patch)
treef022ce31bc016a7af7a0fa84efaa9444949bebb3 /include/fpu
parentsoftfloat: Add flag specific to convert non-nan to int (diff)
downloadqemu-e706d4455b8d54252b11fc504c56df060151cb89.tar.gz
qemu-e706d4455b8d54252b11fc504c56df060151cb89.tar.xz
qemu-e706d4455b8d54252b11fc504c56df060151cb89.zip
softfloat: Add flag specific to signaling nans
PowerPC has this flag, and it's easier to compute it here than after the fact. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20211119160502.17432-8-richard.henderson@linaro.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/fpu')
-rw-r--r--include/fpu/softfloat-types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fpu/softfloat-types.h b/include/fpu/softfloat-types.h
index 9ca50e930b..8abd9ab4ec 100644
--- a/include/fpu/softfloat-types.h
+++ b/include/fpu/softfloat-types.h
@@ -158,6 +158,7 @@ enum {
float_flag_invalid_zdz = 0x0400, /* 0 / 0 */
float_flag_invalid_sqrt = 0x0800, /* sqrt(-x) */
float_flag_invalid_cvti = 0x1000, /* non-nan to integer */
+ float_flag_invalid_snan = 0x2000, /* any operand was snan */
};
/*