]> Git Repo - qemu.git/commitdiff
target/arm: Remove local definitions of float constants
authorPeter Maydell <[email protected]>
Fri, 28 Aug 2020 18:33:10 +0000 (19:33 +0100)
committerPeter Maydell <[email protected]>
Tue, 1 Sep 2020 10:19:32 +0000 (11:19 +0100)
In several places the target/arm code defines local float constants
for 2, 3 and 1.5, which are also provided by include/fpu/softfloat.h.
Remove the unnecessary local duplicate versions.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-id: 20200828183354[email protected]

target/arm/helper-a64.c
target/arm/translate-sve.c
target/arm/vfp_helper.c

index 8682630ff6c5f6ef46560306016b2e38047e99d1..030821489b3869ccf9ac91eb0cff4c30d4356651 100644 (file)
@@ -234,17 +234,6 @@ uint64_t HELPER(neon_cgt_f64)(float64 a, float64 b, void *fpstp)
  * versions, these do a fully fused multiply-add or
  * multiply-add-and-halve.
  */
-#define float16_two make_float16(0x4000)
-#define float16_three make_float16(0x4200)
-#define float16_one_point_five make_float16(0x3e00)
-
-#define float32_two make_float32(0x40000000)
-#define float32_three make_float32(0x40400000)
-#define float32_one_point_five make_float32(0x3fc00000)
-
-#define float64_two make_float64(0x4000000000000000ULL)
-#define float64_three make_float64(0x4008000000000000ULL)
-#define float64_one_point_five make_float64(0x3FF8000000000000ULL)
 
 uint32_t HELPER(recpsf_f16)(uint32_t a, uint32_t b, void *fpstp)
 {
index 15ad6c7d3236571a5d7f3c4501618418522be7d4..e4cd6b62517d62828d187985ef4f1291b3cc5b9f 100644 (file)
@@ -3803,10 +3803,6 @@ static bool trans_##NAME##_zpzi(DisasContext *s, arg_rpri_esz *a)         \
     return true;                                                          \
 }
 
-#define float16_two  make_float16(0x4000)
-#define float32_two  make_float32(0x40000000)
-#define float64_two  make_float64(0x4000000000000000ULL)
-
 DO_FP_IMM(FADD, fadds, half, one)
 DO_FP_IMM(FSUB, fsubs, half, one)
 DO_FP_IMM(FMUL, fmuls, half, two)
index 64266ece6203bbcef23c1961e70acafb86c7fff7..02ab8d7f2d82883f5e35498cbc6212ab6045009a 100644 (file)
@@ -582,10 +582,6 @@ uint32_t HELPER(vfp_fcvt_f64_to_f16)(float64 a, void *fpstp, uint32_t ahp_mode)
     return r;
 }
 
-#define float32_two make_float32(0x40000000)
-#define float32_three make_float32(0x40400000)
-#define float32_one_point_five make_float32(0x3fc00000)
-
 float32 HELPER(recps_f32)(CPUARMState *env, float32 a, float32 b)
 {
     float_status *s = &env->vfp.standard_fp_status;
This page took 0.03905 seconds and 4 git commands to generate.