[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 8/9] target-alpha: Fix cvttq vs inf
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v2 8/9] target-alpha: Fix cvttq vs inf |
Date: |
Thu, 3 Jul 2014 13:29:06 -0700 |
We should raise INV for infinities as well, not OVR+INE.
Reported-by: Al Viro <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target-alpha/fpu_helper.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/target-alpha/fpu_helper.c b/target-alpha/fpu_helper.c
index 2b6c96b..9b297de 100644
--- a/target-alpha/fpu_helper.c
+++ b/target-alpha/fpu_helper.c
@@ -711,8 +711,7 @@ static inline uint64_t inline_cvttq(CPUAlphaState *env,
uint64_t a,
goto do_underflow;
}
} else if (exp == 0x7ff) {
- exc = (frac ? float_flag_invalid
- : float_flag_int_overflow | float_flag_inexact);
+ exc = float_flag_invalid;
} else {
/* Restore implicit bit. */
frac |= 0x10000000000000ull;
--
1.9.3
- [Qemu-devel] [PATCH v2 0/9] target-alpha exception improvements, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 2/9] target-alpha: Set PC correctly for floating-point exceptions, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 1/9] target-alpha: Forget installed round mode after MT_FPCR, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 3/9] target-alpha: Store IOV exception in fp_status, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 8/9] target-alpha: Fix cvttq vs inf,
Richard Henderson <=
- [Qemu-devel] [PATCH v2 4/9] target-alpha: Set fpcr_exc_status even for disabled exceptions, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 6/9] target-alpha: Raise IOV from CVTTQ, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 5/9] target-alpha: Set EXC_M_SWC for exceptions from /S insns, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 9/9] target-alpha: Fix integer overflow checking insns, Richard Henderson, 2014/07/03
- [Qemu-devel] [PATCH v2 7/9] target-alpha: Fix cvttq vs large integers, Richard Henderson, 2014/07/03