/openbmc/qemu/target/hexagon/ |
H A D | helper.h | 43 DEF_HELPER_2(conv_w2df, f64, env, s32) 77 DEF_HELPER_3(dfadd, f64, env, f64, f64) 78 DEF_HELPER_3(dfsub, f64, env, f64, f64) 79 DEF_HELPER_3(dfmax, f64, env, f64, f64) 80 DEF_HELPER_3(dfmin, f64, env, f64, f64) 81 DEF_HELPER_3(dfcmpeq, s32, env, f64, f64) 82 DEF_HELPER_3(dfcmpgt, s32, env, f64, f64) 83 DEF_HELPER_3(dfcmpge, s32, env, f64, f64) 84 DEF_HELPER_3(dfcmpuo, s32, env, f64, f64) 94 DEF_HELPER_3(dfmpyfix, f64, env, f64, f64) [all …]
|
H A D | fma_emu.c | 66 static uint64_t float64_getmant(float64 f64) in float64_getmant() argument 68 Double a = { .i = f64 }; in float64_getmant() 69 if (float64_is_normal(f64)) { in float64_getmant() 72 if (float64_is_zero(f64)) { in float64_getmant() 75 if (float64_is_denormal(f64)) { in float64_getmant() 81 int32_t float64_getexp(float64 f64) in float64_getexp() argument 83 Double a = { .i = f64 }; in float64_getexp() 84 if (float64_is_normal(f64)) { in float64_getexp() 87 if (float64_is_denormal(f64)) { in float64_getexp()
|
/openbmc/qemu/target/xtensa/ |
H A D | helper.h | 76 DEF_HELPER_3(add_d, f64, env, f64, f64) 78 DEF_HELPER_3(sub_d, f64, env, f64, f64) 80 DEF_HELPER_3(mul_d, f64, env, f64, f64) 82 DEF_HELPER_4(madd_d, f64, env, f64, f64, f64) 84 DEF_HELPER_4(msub_d, f64, env, f64, f64, f64) 86 DEF_HELPER_3(mkdadj_d, f64, env, f64, f64) 88 DEF_HELPER_2(mksadj_d, f64, env, f64) 96 DEF_HELPER_3(un_d, i32, env, f64, f64) 97 DEF_HELPER_3(oeq_d, i32, env, f64, f64) 98 DEF_HELPER_3(ueq_d, i32, env, f64, f64) [all …]
|
/openbmc/qemu/target/sh4/ |
H A D | helper.h | 20 DEF_HELPER_FLAGS_3(fadd_DT, TCG_CALL_NO_WG, f64, env, f64, f64) 21 DEF_HELPER_FLAGS_2(fcnvsd_FT_DT, TCG_CALL_NO_WG, f64, env, f32) 22 DEF_HELPER_FLAGS_2(fcnvds_DT_FT, TCG_CALL_NO_WG, f32, env, f64) 25 DEF_HELPER_FLAGS_3(fcmp_eq_DT, TCG_CALL_NO_WG, i32, env, f64, f64) 27 DEF_HELPER_FLAGS_3(fcmp_gt_DT, TCG_CALL_NO_WG, i32, env, f64, f64) 29 DEF_HELPER_FLAGS_3(fdiv_DT, TCG_CALL_NO_WG, f64, env, f64, f64) 31 DEF_HELPER_FLAGS_2(float_DT, TCG_CALL_NO_WG, f64, env, i32) 34 DEF_HELPER_FLAGS_3(fmul_DT, TCG_CALL_NO_WG, f64, env, f64, f64) 36 DEF_HELPER_FLAGS_3(fsub_DT, TCG_CALL_NO_WG, f64, env, f64, f64) 38 DEF_HELPER_FLAGS_2(fsqrt_DT, TCG_CALL_NO_WG, f64, env, f64) [all …]
|
/openbmc/qemu/target/sparc/ |
H A D | helper.h | 46 DEF_HELPER_FLAGS_2(fsqrtd, TCG_CALL_NO_WG, f64, env, f64) 50 DEF_HELPER_FLAGS_3(fcmpd, TCG_CALL_NO_WG, i32, env, f64, f64) 51 DEF_HELPER_FLAGS_3(fcmped, TCG_CALL_NO_WG, i32, env, f64, f64) 55 DEF_HELPER_FLAGS_2(flcmpd, TCG_CALL_NO_RWG_SE, i32, f64, f64) 58 DEF_HELPER_FLAGS_3(faddd, TCG_CALL_NO_WG, f64, env, f64, f64) 59 DEF_HELPER_FLAGS_3(fsubd, TCG_CALL_NO_WG, f64, env, f64, f64) 60 DEF_HELPER_FLAGS_3(fmuld, TCG_CALL_NO_WG, f64, env, f64, f64) 61 DEF_HELPER_FLAGS_3(fdivd, TCG_CALL_NO_WG, f64, env, f64, f64) 62 DEF_HELPER_FLAGS_5(fmaddd, TCG_CALL_NO_WG, f64, env, f64, f64, f64, i32) 63 DEF_HELPER_FLAGS_3(fnaddd, TCG_CALL_NO_WG, f64, env, f64, f64) [all …]
|
/openbmc/qemu/target/hppa/ |
H A D | helper.h | 34 DEF_HELPER_FLAGS_2(fsqrt_d, TCG_CALL_NO_RWG, f64, env, f64) 35 DEF_HELPER_FLAGS_2(frnd_d, TCG_CALL_NO_RWG, f64, env, f64) 36 DEF_HELPER_FLAGS_3(fadd_d, TCG_CALL_NO_RWG, f64, env, f64, f64) 37 DEF_HELPER_FLAGS_3(fsub_d, TCG_CALL_NO_RWG, f64, env, f64, f64) 38 DEF_HELPER_FLAGS_3(fmpy_d, TCG_CALL_NO_RWG, f64, env, f64, f64) 39 DEF_HELPER_FLAGS_3(fdiv_d, TCG_CALL_NO_RWG, f64, env, f64, f64) 41 DEF_HELPER_FLAGS_2(fcnv_s_d, TCG_CALL_NO_RWG, f64, env, f32) 42 DEF_HELPER_FLAGS_2(fcnv_d_s, TCG_CALL_NO_RWG, f32, env, f64) 46 DEF_HELPER_FLAGS_2(fcnv_w_d, TCG_CALL_NO_RWG, f64, env, s32) 50 DEF_HELPER_FLAGS_2(fcnv_d_w, TCG_CALL_NO_RWG, s32, env, f64) [all …]
|
/openbmc/qemu/tests/tcg/i386/ |
H A D | float_convd.conf | 3 to single: f64(nan:0x007ffc000000000000) (OK) 9 to single: f64(-nan:0x00fff8000000000000) (OK) 15 to single: f64(-inf:0x00fff0000000000000) (OK) 225 to single: f64(inf:0x007ff0000000000000) (OK) 231 to single: f64(nan:0x007ff8000000000000) (OK) 237 to single: f64(nan:0x007ff8000000000000) (OK) 243 to single: f64(nan:0x007ffc000000000000) (OK) 250 to single: f64(nan:0x007ffc000000000000) (OK) 256 to single: f64(-nan:0x00fff8000000000000) (OK) 262 to single: f64(-inf:0x00fff0000000000000) (OK) [all …]
|
H A D | float_convs.ref | 3 to double: f64(-nan:0x00fffc000000000000) (OK) 9 to double: f64(-nan:0x00fff8000000000000) (OK) 15 to double: f64(-inf:0x00fff0000000000000) (OK) 171 to double: f64(inf:0x007ff0000000000000) (OK) 177 to double: f64(nan:0x007ff8000000000000) (OK) 183 to double: f64(nan:0x007ffc000000000000) (OK) 190 to double: f64(-nan:0x00fffc000000000000) (OK) 196 to double: f64(-nan:0x00fff8000000000000) (OK) 202 to double: f64(-inf:0x00fff0000000000000) (OK) 358 to double: f64(inf:0x007ff0000000000000) (OK) [all …]
|
/openbmc/qemu/tests/tcg/arm/ |
H A D | float_convs.ref | 3 to double: f64(-nan:0x00fffc000000000000) (INVALID) 9 to double: f64(-nan:0x00fff8000000000000) (OK) 15 to double: f64(-inf:0x00fff0000000000000) (OK) 171 to double: f64(inf:0x007ff0000000000000) (OK) 177 to double: f64(nan:0x007ff8000000000000) (OK) 196 to double: f64(-nan:0x00fff8000000000000) (OK) 202 to double: f64(-inf:0x00fff0000000000000) (OK) 358 to double: f64(inf:0x007ff0000000000000) (OK) 364 to double: f64(nan:0x007ff8000000000000) (OK) 545 to double: f64(inf:0x007ff0000000000000) (OK) [all …]
|
H A D | float_convd.ref | 2 from double: f64(nan:0x007ff4000000000000) 8 from double: f64(-nan:0x00fff8000000000000) 14 from double: f64(-inf:0x00fff0000000000000) 224 from double: f64(inf:0x007ff0000000000000) 230 from double: f64(nan:0x007ff8000000000000) 236 from double: f64(nan:0x007ff0000000000001) 242 from double: f64(nan:0x007ff4000000000000) 249 from double: f64(nan:0x007ff4000000000000) 255 from double: f64(-nan:0x00fff8000000000000) 261 from double: f64(-inf:0x00fff0000000000000) [all …]
|
/openbmc/qemu/tests/tcg/aarch64/ |
H A D | float_convs.ref | 3 to double: f64(-nan:0x00fffc000000000000) (INVALID) 9 to double: f64(-nan:0x00fff8000000000000) (OK) 15 to double: f64(-inf:0x00fff0000000000000) (OK) 171 to double: f64(inf:0x007ff0000000000000) (OK) 177 to double: f64(nan:0x007ff8000000000000) (OK) 196 to double: f64(-nan:0x00fff8000000000000) (OK) 202 to double: f64(-inf:0x00fff0000000000000) (OK) 358 to double: f64(inf:0x007ff0000000000000) (OK) 364 to double: f64(nan:0x007ff8000000000000) (OK) 545 to double: f64(inf:0x007ff0000000000000) (OK) [all …]
|
H A D | float_convd.ref | 2 from double: f64(nan:0x007ff4000000000000) 8 from double: f64(-nan:0x00fff8000000000000) 14 from double: f64(-inf:0x00fff0000000000000) 224 from double: f64(inf:0x007ff0000000000000) 230 from double: f64(nan:0x007ff8000000000000) 236 from double: f64(nan:0x007ff0000000000001) 242 from double: f64(nan:0x007ff4000000000000) 249 from double: f64(nan:0x007ff4000000000000) 255 from double: f64(-nan:0x00fff8000000000000) 261 from double: f64(-inf:0x00fff0000000000000) [all …]
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | float_convs.ref | 3 to double: f64(-nan:0x00ffffffffffffffff) (INVALID) 9 to double: f64(-nan:0x00ffffffffffffffff) (OK) 15 to double: f64(-inf:0x00fff0000000000000) (OK) 171 to double: f64(inf:0x007ff0000000000000) (OK) 177 to double: f64(-nan:0x00ffffffffffffffff) (OK) 196 to double: f64(-nan:0x00ffffffffffffffff) (OK) 202 to double: f64(-inf:0x00fff0000000000000) (OK) 358 to double: f64(inf:0x007ff0000000000000) (OK) 364 to double: f64(-nan:0x00ffffffffffffffff) (OK) 383 to double: f64(-nan:0x00ffffffffffffffff) (OK) [all …]
|
H A D | float_convd.ref | 2 from double: f64(nan:0x007ff4000000000000) 8 from double: f64(-nan:0x00fff8000000000000) 14 from double: f64(-inf:0x00fff0000000000000) 224 from double: f64(inf:0x007ff0000000000000) 230 from double: f64(nan:0x007ff8000000000000) 236 from double: f64(nan:0x007ff0000000000001) 242 from double: f64(nan:0x007ff4000000000000) 249 from double: f64(nan:0x007ff4000000000000) 255 from double: f64(-nan:0x00fff8000000000000) 261 from double: f64(-inf:0x00fff0000000000000) [all …]
|
/openbmc/qemu/tests/tcg/ppc64le/ |
H A D | float_convs.ref | 3 to double: f64(-nan:0x00fff4000000000000) (OK) 9 to double: f64(-nan:0x00fff8000000000000) (OK) 15 to double: f64(-inf:0x00fff0000000000000) (OK) 171 to double: f64(inf:0x007ff0000000000000) (OK) 177 to double: f64(nan:0x007ff8000000000000) (OK) 183 to double: f64(nan:0x007ff4000000000000) (OK) 190 to double: f64(-nan:0x00fff4000000000000) (OK) 196 to double: f64(-nan:0x00fff8000000000000) (OK) 202 to double: f64(-inf:0x00fff0000000000000) (OK) 358 to double: f64(inf:0x007ff0000000000000) (OK) [all …]
|
/openbmc/qemu/tests/tcg/x86_64/ |
H A D | float_convs.ref | 3 to double: f64(-nan:0x00fffc000000000000) (INVALID) 9 to double: f64(-nan:0x00fff8000000000000) (OK) 15 to double: f64(-inf:0x00fff0000000000000) (OK) 171 to double: f64(inf:0x007ff0000000000000) (OK) 177 to double: f64(nan:0x007ff8000000000000) (OK) 196 to double: f64(-nan:0x00fff8000000000000) (OK) 202 to double: f64(-inf:0x00fff0000000000000) (OK) 358 to double: f64(inf:0x007ff0000000000000) (OK) 364 to double: f64(nan:0x007ff8000000000000) (OK) 545 to double: f64(inf:0x007ff0000000000000) (OK) [all …]
|
H A D | float_convd.ref | 2 from double: f64(nan:0x007ff4000000000000) 8 from double: f64(-nan:0x00fff8000000000000) 14 from double: f64(-inf:0x00fff0000000000000) 224 from double: f64(inf:0x007ff0000000000000) 230 from double: f64(nan:0x007ff8000000000000) 236 from double: f64(nan:0x007ff0000000000001) 242 from double: f64(nan:0x007ff4000000000000) 249 from double: f64(nan:0x007ff4000000000000) 255 from double: f64(-nan:0x00fff8000000000000) 261 from double: f64(-inf:0x00fff0000000000000) [all …]
|
/openbmc/qemu/tests/tcg/loongarch64/ |
H A D | float_convs.ref | 3 to double: f64(-nan:0x00fffc000000000000) (INVALID) 9 to double: f64(-nan:0x00fff8000000000000) (OK) 15 to double: f64(-inf:0x00fff0000000000000) (OK) 171 to double: f64(inf:0x007ff0000000000000) (OK) 177 to double: f64(nan:0x007ff8000000000000) (OK) 196 to double: f64(-nan:0x00fff8000000000000) (OK) 202 to double: f64(-inf:0x00fff0000000000000) (OK) 358 to double: f64(inf:0x007ff0000000000000) (OK) 364 to double: f64(nan:0x007ff8000000000000) (OK) 545 to double: f64(inf:0x007ff0000000000000) (OK) [all …]
|
H A D | float_convd.ref | 2 from double: f64(nan:0x007ff4000000000000) 8 from double: f64(-nan:0x00fff8000000000000) 14 from double: f64(-inf:0x00fff0000000000000) 224 from double: f64(inf:0x007ff0000000000000) 230 from double: f64(nan:0x007ff8000000000000) 236 from double: f64(nan:0x007ff0000000000001) 242 from double: f64(nan:0x007ff4000000000000) 249 from double: f64(nan:0x007ff4000000000000) 255 from double: f64(-nan:0x00fff8000000000000) 261 from double: f64(-inf:0x00fff0000000000000) [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | helper-a64.h | 30 DEF_HELPER_3(vfp_cmpd_a64, i64, f64, f64, ptr) 31 DEF_HELPER_3(vfp_cmped_a64, i64, f64, f64, ptr) 34 DEF_HELPER_FLAGS_3(vfp_mulxd, TCG_CALL_NO_RWG, f64, f64, f64, ptr) 40 DEF_HELPER_FLAGS_3(recpsf_f64, TCG_CALL_NO_RWG, f64, f64, f64, ptr) 43 DEF_HELPER_FLAGS_3(rsqrtsf_f64, TCG_CALL_NO_RWG, f64, f64, f64, ptr) 48 DEF_HELPER_FLAGS_2(frecpx_f64, TCG_CALL_NO_RWG, f64, f64, ptr) 51 DEF_HELPER_FLAGS_2(fcvtx_f64_to_f32, TCG_CALL_NO_RWG, f32, f64, env)
|
/openbmc/qemu/target/arm/ |
H A D | helper.h | 114 DEF_HELPER_3(vfp_addd, f64, f64, f64, ptr) 117 DEF_HELPER_3(vfp_subd, f64, f64, f64, ptr) 120 DEF_HELPER_3(vfp_muld, f64, f64, f64, ptr) 123 DEF_HELPER_3(vfp_divd, f64, f64, f64, ptr) 126 DEF_HELPER_3(vfp_maxd, f64, f64, f64, ptr) 129 DEF_HELPER_3(vfp_mind, f64, f64, f64, ptr) 132 DEF_HELPER_3(vfp_maxnumd, f64, f64, f64, ptr) 135 DEF_HELPER_3(vfp_minnumd, f64, f64, f64, ptr) 138 DEF_HELPER_2(vfp_sqrtd, f64, f64, env) 141 DEF_HELPER_3(vfp_cmpd, void, f64, f64, env) [all …]
|
H A D | vfp_helper.c | 763 uint64_t f64_val = float64_val(f64); in HELPER() 764 bool f64_sign = float64_is_neg(f64); in HELPER() 769 if (float64_is_any_nan(f64)) { in HELPER() 770 float64 nan = f64; in HELPER() 783 } else if (float64_is_zero(f64)) { in HELPER() 956 uint64_t val = float64_val(f64); in HELPER() 957 bool f64_sign = float64_is_neg(f64); in HELPER() 961 if (float64_is_any_nan(f64)) { in HELPER() 962 float64 nan = f64; in HELPER() 973 } else if (float64_is_zero(f64)) { in HELPER() [all …]
|
/openbmc/linux/arch/arm/nwfpe/ |
H A D | double_cpdo.c | 15 float64 f64; member 65 u.f64 = rFm; in float64_mnf() 72 return u.f64; in float64_mnf() 79 u.f64 = rFm; in float64_abs() 86 return u.f64; in float64_abs()
|
/openbmc/qemu/tests/fp/ |
H A D | fp-bench.c | 94 float64 f64; member 210 ops[i].f64 = make_float64(random_ops[i]); in fill_random() 211 if (no_neg && float64_is_neg(ops[i].f64)) { in fill_random() 212 ops[i].f64 = float64_chs(ops[i].f64); in fill_random() 352 float64 a = ops[0].f64; in bench() 353 float64 b = ops[1].f64; in bench() 354 float64 c = ops[2].f64; in bench() 358 res.f64 = float64_add(a, b, &soft_status); in bench() 361 res.f64 = float64_sub(a, b, &soft_status); in bench() 367 res.f64 = float64_div(a, b, &soft_status); in bench() [all …]
|
/openbmc/qemu/target/ppc/ |
H A D | helper.h | 116 DEF_HELPER_3(FADD, f64, env, f64, f64) 117 DEF_HELPER_3(FADDS, f64, env, f64, f64) 118 DEF_HELPER_3(FSUB, f64, env, f64, f64) 119 DEF_HELPER_3(FSUBS, f64, env, f64, f64) 120 DEF_HELPER_3(FMUL, f64, env, f64, f64) 121 DEF_HELPER_3(FMULS, f64, env, f64, f64) 122 DEF_HELPER_3(FDIV, f64, env, f64, f64) 123 DEF_HELPER_3(FDIVS, f64, env, f64, f64) 132 DEF_HELPER_2(FSQRT, f64, env, f64) 133 DEF_HELPER_2(FSQRTS, f64, env, f64)
|