[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 05/15] target/tricore: use float32_is_denormal
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL 05/15] target/tricore: use float32_is_denormal |
Date: |
Fri, 14 Dec 2018 13:54:42 +0000 |
From: "Emilio G. Cota" <address@hidden>
Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
diff --git a/target/tricore/fpu_helper.c b/target/tricore/fpu_helper.c
index df162902d6..31df462e4a 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.17.1
- [Qemu-devel] [PULL 00/15] Hardfloat + softfloat maintainers update and gitdm, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 03/15] fp-test: pick TARGET_ARM to get its specialization, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 04/15] softfloat: add float{32, 64}_is_{de, }normal, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 07/15] softfloat: add float{32, 64}_is_zero_or_normal, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 01/15] contrib: add a basic gitdm config, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 05/15] target/tricore: use float32_is_denormal,
Alex Bennée <=
- [Qemu-devel] [PULL 10/15] hardfloat: implement float32/64 addition and subtraction, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 06/15] softfloat: rename canonicalize to sf_canonicalize, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 09/15] fpu: introduce hardfloat, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 08/15] tests/fp: add fp-bench, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 02/15] MAINTAINERS: update status of FPU emulation, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 11/15] hardfloat: implement float32/64 multiplication, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 13/15] hardfloat: implement float32/64 fused multiply-add, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 15/15] hardfloat: implement float32/64 comparison, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 14/15] hardfloat: implement float32/64 square root, Alex Bennée, 2018/12/14
- [Qemu-devel] [PULL 12/15] hardfloat: implement float32/64 division, Alex Bennée, 2018/12/14