[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 5/6] target-arm: Signal Underflow when denormal f
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH v2 5/6] target-arm: Signal Underflow when denormal flushed to zero on output |
Date: |
Thu, 19 May 2011 14:46:18 +0100 |
On ARM the architecture mandates that when an output denormal is flushed to
zero we must set the FPSCR UFC (underflow) bit, so map softfloat's
float_flag_output_denormal accordingly.
Signed-off-by: Peter Maydell <address@hidden>
---
target-arm/helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-arm/helper.c b/target-arm/helper.c
index f072527..05b3ccc 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -2355,7 +2355,7 @@ static inline int vfp_exceptbits_from_host(int host_bits)
target_bits |= 2;
if (host_bits & float_flag_overflow)
target_bits |= 4;
- if (host_bits & float_flag_underflow)
+ if (host_bits & (float_flag_underflow | float_flag_output_denormal))
target_bits |= 8;
if (host_bits & float_flag_inexact)
target_bits |= 0x10;
--
1.7.1
- [Qemu-devel] [PATCH v2 0/6] target-arm: Fix bugs in fp exception flag setting, Peter Maydell, 2011/05/19
- [Qemu-devel] [PATCH v2 1/6] target-arm: Don't set FP exceptions in recip, recip_sqrt estimate fns, Peter Maydell, 2011/05/19
- [Qemu-devel] [PATCH v2 5/6] target-arm: Signal Underflow when denormal flushed to zero on output,
Peter Maydell <=
- [Qemu-devel] [PATCH v2 2/6] target-arm: Signal InputDenormal for VRECPE, VRSQRTE, VRECPS, VRSQRTS, Peter Maydell, 2011/05/19
- [Qemu-devel] [PATCH v2 6/6] target-arm: Use correct float status for Neon int-float conversions, Peter Maydell, 2011/05/19
- [Qemu-devel] [PATCH v2 3/6] target-arm: Signal InvalidOp for Neon GE and GT compares of QNaN, Peter Maydell, 2011/05/19
- [Qemu-devel] [PATCH v2 4/6] softfloat: Add new flag for when denormal result is flushed to zero, Peter Maydell, 2011/05/19
- Re: [Qemu-devel] [PATCH v2 0/6] target-arm: Fix bugs in fp exception flag setting, Aurelien Jarno, 2011/05/23