From e6afc87f804abee7d0479be5e8e31c56d885fafb Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 19 May 2011 14:46:17 +0100 Subject: softfloat: Add new flag for when denormal result is flushed to zero Add a new float_flag_output_denormal which is set when the result of a floating point operation would be denormal but is flushed to zero because we are in flush_to_zero mode. This is necessary because some architectures signal this condition as an underflow and others signal it as an inexact result. Signed-off-by: Peter Maydell Signed-off-by: Aurelien Jarno --- fpu/softfloat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fpu/softfloat.h') diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 5eff0858f1..58c9b7b40c 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -193,7 +193,8 @@ enum { float_flag_overflow = 8, float_flag_underflow = 16, float_flag_inexact = 32, - float_flag_input_denormal = 64 + float_flag_input_denormal = 64, + float_flag_output_denormal = 128 }; typedef struct float_status { -- cgit v1.2.1