[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 05/15] target/tricore: use float32_is_denormal
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [PATCH v3 05/15] target/tricore: use float32_is_denormal |
Date: |
Wed, 4 Apr 2018 19:11:05 -0400 |
Cc: Bastian Koppelmann <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
---
target/tricore/fpu_helper.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/target/tricore/fpu_helper.c b/target/tricore/fpu_helper.c
index df16290..31df462 100644
--- a/target/tricore/fpu_helper.c
+++ b/target/tricore/fpu_helper.c
@@ -44,11 +44,6 @@ static inline uint8_t f_get_excp_flags(CPUTriCoreState *env)
| float_flag_inexact);
}
-static inline bool f_is_denormal(float32 arg)
-{
- return float32_is_zero_or_denormal(arg) && !float32_is_zero(arg);
-}
-
static inline float32 f_maddsub_nan_result(float32 arg1, float32 arg2,
float32 arg3, float32 result,
uint32_t muladd_negate_c)
@@ -260,8 +255,8 @@ uint32_t helper_fcmp(CPUTriCoreState *env, uint32_t r1,
uint32_t r2)
set_flush_inputs_to_zero(0, &env->fp_status);
result = 1 << (float32_compare_quiet(arg1, arg2, &env->fp_status) + 1);
- result |= f_is_denormal(arg1) << 4;
- result |= f_is_denormal(arg2) << 5;
+ result |= float32_is_denormal(arg1) << 4;
+ result |= float32_is_denormal(arg2) << 5;
flags = f_get_excp_flags(env);
if (flags) {
--
2.7.4
- [Qemu-devel] [PATCH v3 00/15] fp-test + hardfloat, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 02/15] softfloat: fix {min, max}nummag for same-abs-value inputs, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 01/15] tests: add fp-test, a floating point test suite, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 04/15] softfloat: add float{32, 64}_is_{de, }normal, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 03/15] fp-test: add muladd variants, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 05/15] target/tricore: use float32_is_denormal,
Emilio G. Cota <=
- [Qemu-devel] [PATCH v3 07/15] softfloat: rename canonicalize to sf_canonicalize, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 06/15] tests/fp: add fp-bench, a collection of simple floating point microbenchmarks, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 08/15] softfloat: add float{32, 64}_is_zero_or_normal, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 09/15] fpu: introduce hardfloat, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 11/15] hardfloat: support float32/64 multiplication, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 10/15] hardfloat: support float32/64 addition and subtraction, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 12/15] hardfloat: support float32/64 division, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 15/15] hardfloat: support float32/64 comparison, Emilio G. Cota, 2018/04/04