/openbmc/qemu/target/hexagon/ |
H A D | helper.h | 38 DEF_HELPER_2(conv_sf2df, f64, env, f32) 39 DEF_HELPER_2(conv_df2sf, f32, env, f64) 41 DEF_HELPER_2(conv_uw2df, f64, env, s32) 43 DEF_HELPER_2(conv_w2df, f64, env, s32) 45 DEF_HELPER_2(conv_ud2df, f64, env, s64) 47 DEF_HELPER_2(conv_d2df, f64, env, s64) 52 DEF_HELPER_2(conv_df2uw, i32, env, f64) 53 DEF_HELPER_2(conv_df2w, s32, env, f64) 54 DEF_HELPER_2(conv_df2ud, i64, env, f64) 55 DEF_HELPER_2(conv_df2d, s64, env, 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 | 61 DEF_HELPER_2(cvtd_s, f64, env, f32) 74 DEF_HELPER_FLAGS_1(abs_d, TCG_CALL_NO_RWG_SE, f64, f64) 75 DEF_HELPER_FLAGS_1(neg_d, TCG_CALL_NO_RWG_SE, f64, f64) 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) [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/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) 21 to single: f64(-inf:0x00fff0000000000000) (OVERFLOW INEXACT ) 27 to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 33 to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 39 to single: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (INEXACT ) 45 to single: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (INEXACT ) 51 to single: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) (OK) 57 to single: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) (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) 21 to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 27 to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) 33 to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) 39 to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) 45 to double: f64(-0x1.50544400000000000000p-66:0x00bbd5054440000000) (OK) 51 to double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) 57 to double: f64(0x0.00000000000000000000p+0:00000000000000000000) (OK) [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) 47 DEF_HELPER_FLAGS_2(fcnv_dw_d, TCG_CALL_NO_RWG, f64, env, s64) [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) 21 to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 27 to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) 33 to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) 39 to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) 45 to double: f64(-0x1.50544400000000000000p-66:0x00bbd5054440000000) (OK) 51 to double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) 57 to double: f64(0x0.00000000000000000000p+0:00000000000000000000) (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) 20 from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) 26 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 32 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 38 from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) 44 from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) 50 from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) 56 from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) [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) 21 to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 27 to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) 33 to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) 39 to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) 45 to double: f64(-0x1.50544400000000000000p-66:0x00bbd5054440000000) (OK) 51 to double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) 57 to double: f64(0x0.00000000000000000000p+0:00000000000000000000) (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) 20 from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) 26 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 32 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 38 from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) 44 from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) 50 from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) 56 from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) [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) 21 to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 27 to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) 33 to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) 39 to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) 45 to double: f64(-0x1.50544400000000000000p-66:0x00bbd5054440000000) (OK) 51 to double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) 57 to double: f64(0x0.00000000000000000000p+0:00000000000000000000) (OK) [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) 21 to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 27 to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) 33 to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) 39 to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) 45 to double: f64(-0x1.50544400000000000000p-66:0x00bbd5054440000000) (OK) 51 to double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) 57 to double: f64(0x0.00000000000000000000p+0:00000000000000000000) (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) 20 from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) 26 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 32 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 38 from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) 44 from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) 50 from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) 56 from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) [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) 21 to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 27 to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) 33 to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) 39 to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) 45 to double: f64(-0x1.50544400000000000000p-66:0x00bbd5054440000000) (OK) 51 to double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) 57 to double: f64(0x0.00000000000000000000p+0:00000000000000000000) (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) 20 from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) 26 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 32 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 38 from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) 44 from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) 50 from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) 56 from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) [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) 21 to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) 27 to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) 33 to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) 39 to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) 45 to double: f64(-0x1.50544400000000000000p-66:0x00bbd5054440000000) (OK) 51 to double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) 57 to double: f64(0x0.00000000000000000000p+0:00000000000000000000) (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) 20 from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) 26 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 32 from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) 38 from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) 44 from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) 50 from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) 56 from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) [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 | 766 float64 f64 = float64_squash_input_denormal(input, fpst); in HELPER() local 767 uint64_t f64_val = float64_val(f64); in HELPER() 768 bool f64_sign = float64_is_neg(f64); in HELPER() 773 if (float64_is_any_nan(f64)) { in HELPER() 774 float64 nan = f64; in HELPER() 775 if (float64_is_signaling_nan(f64, fpst)) { in HELPER() 778 nan = float64_silence_nan(f64, fpst); in HELPER() 785 } else if (float64_is_infinity(f64)) { in HELPER() 786 return float64_set_sign(float64_zero, float64_is_neg(f64)); in HELPER() 787 } 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)
|