[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 16/19] target-alpha: fix wrong usage of float64_eq_q
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [PATCH 16/19] target-alpha: fix wrong usage of float64_eq_quiet() |
Date: |
Tue, 12 Apr 2011 23:59:28 +0200 |
On alpha, all NaN should trap during a comparison, not only sNaN. Fix
this by using float64_eq() instead of float64_eq_quiet().
Signed-off-by: Aurelien Jarno <address@hidden>
(cherry picked from commit 64990e0735007f75fe03123c1339366bcb496268)
---
target-alpha/op_helper.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c
index bc938ed..b986b67 100644
--- a/target-alpha/op_helper.c
+++ b/target-alpha/op_helper.c
@@ -918,10 +918,11 @@ uint64_t helper_cmpteq(uint64_t a, uint64_t b)
fa = t_to_float64(a);
fb = t_to_float64(b);
- if (float64_eq_quiet(fa, fb, &FP_STATUS))
+ if (float64_eq(fa, fb, &FP_STATUS)) {
return 0x4000000000000000ULL;
- else
+ } else {
return 0;
+ }
}
uint64_t helper_cmptle(uint64_t a, uint64_t b)
--
1.7.2.3
- Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function, (continued)
- Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function, Richard Henderson, 2011/04/14
- Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function, Peter Maydell, 2011/04/14
- Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function, Richard Henderson, 2011/04/14
- Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function, Peter Maydell, 2011/04/14
- Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function, Richard Henderson, 2011/04/14
[Qemu-devel] [PATCH 11/19] softfloat: rename float*_eq() into float*_eq_quiet(), Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 19/19] target-mips: don't hardcode softfloat exception bits, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 13/19] softfloat: move float*_eq and float*_eq_quiet, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 18/19] target-mips: simplify FP comparisons, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 09/19] target-mips: use new float*_unordered*() functions, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 16/19] target-alpha: fix wrong usage of float64_eq_quiet(),
Aurelien Jarno <=
[Qemu-devel] [PATCH 10/19] target-i386: fix CMPUNORDPS/D and CMPORDPS/D instructions, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 14/19] softfloat: improve description of comparison functions, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 17/19] target-ppc: fix SPE comparison functions, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 01/19] softfloat: use GCC builtins to count the leading zeros, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 12/19] softfloat: rename float*_eq_signaling() into float*_eq(), Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 04/19] target-i386: use float unions from cpu-all.h, Aurelien Jarno, 2011/04/12
[Qemu-devel] [PATCH 02/19] cpu-all.h: define CPU_LDoubleU, Aurelien Jarno, 2011/04/12