Home
last modified time | relevance | path

Searched refs:float16 (Results 1 – 20 of 20) sorted by relevance

/qemu/include/fpu/
H A Dsoftfloat.h113 float16 float16_squash_input_denormal(float16 a, float_status *status);
139 float16 int16_to_float16_scalbn(int16_t a, int, float_status *status);
140 float16 int32_to_float16_scalbn(int32_t a, int, float_status *status);
141 float16 int64_to_float16_scalbn(int64_t a, int, float_status *status);
142 float16 uint16_to_float16_scalbn(uint16_t a, int, float_status *status);
143 float16 uint32_to_float16_scalbn(uint32_t a, int, float_status *status);
144 float16 uint64_to_float16_scalbn(uint64_t a, int, float_status *status);
146 float16 int8_to_float16(int8_t a, float_status *status);
147 float16 int16_to_float16(int16_t a, float_status *status);
148 float16 int32_to_float16(int32_t a, float_status *status);
[all …]
H A Dsoftfloat-types.h89 typedef uint16_t float16; typedef
/qemu/target/riscv/
H A Dfpu_helper.c123 float16 frs1 = check_nanbox_h(env, rs1); in do_fmadd_h()
124 float16 frs2 = check_nanbox_h(env, rs2); in do_fmadd_h()
125 float16 frs3 = check_nanbox_h(env, rs3); in do_fmadd_h()
552 float16 frs1 = check_nanbox_h(env, rs1); in helper_fadd_h()
553 float16 frs2 = check_nanbox_h(env, rs2); in helper_fadd_h()
559 float16 frs1 = check_nanbox_h(env, rs1); in helper_fsub_h()
560 float16 frs2 = check_nanbox_h(env, rs2); in helper_fsub_h()
566 float16 frs1 = check_nanbox_h(env, rs1); in helper_fmul_h()
567 float16 frs2 = check_nanbox_h(env, rs2); in helper_fmul_h()
573 float16 frs1 = check_nanbox_h(env, rs1); in helper_fdiv_h()
[all …]
H A Dinternals.h119 static inline uint64_t nanbox_h(CPURISCVState *env, float16 f) in nanbox_h()
129 static inline float16 check_nanbox_h(CPURISCVState *env, uint64_t f) in check_nanbox_h()
H A Dvector_helper.c3838 static float16 frsqrt7_h(float16 f, float_status *s) in frsqrt7_h()
4053 static float16 frec7_h(float16 f, float_status *s) in frec7_h()
4441 float16 f = frs1; in GEN_VEXT_CMP_VF()
/qemu/target/arm/tcg/
H A Dvec_helper.c879 float16 *d = vd;
880 float16 *n = vn;
881 float16 *m = vm;
887 float16 e0 = n[H2(i)];
888 float16 e1 = m[H2(i + 1)];
889 float16 e2 = n[H2(i + 1)];
890 float16 e3 = m[H2(i)];
966 float16 *d = vd, *n = vn, *m = vm, *a = va; in HELPER()
971 float16 negx_imag, negx_real; in HELPER()
981 float16 e2 = n[H2(i + flip)]; in HELPER()
[all …]
H A Dvec_internal.h275 static inline float16 float16_ah_chs(float16 a) in float16_ah_chs()
290 static inline float16 float16_maybe_ah_chs(float16 a, bool fpcr_ah) in float16_maybe_ah_chs()
H A Dhelper-a64.c234 DO_RECPS(recpsf_f16, uint32_t, float16, chs) in DO_RECPS() argument
237 DO_RECPS(recpsf_ah_f16, uint32_t, float16, ah_chs) in DO_RECPS()
255 DO_RSQRTSF(rsqrtsf_f16, uint32_t, float16, chs)
258 DO_RSQRTSF(rsqrtsf_ah_f16, uint32_t, float16, ah_chs)
269 float16 nan = a;
399 AH_MINMAX_HELPER(vfp_ah_minh, dh_ctype_f16, float16, min) in AH_MINMAX_HELPER() argument
402 AH_MINMAX_HELPER(vfp_ah_maxh, dh_ctype_f16, float16, max) in AH_MINMAX_HELPER()
450 float16 a1, a2, b1, b2; \
471 static float16 float16_mulx(float16 a, float16 b, float_status *fpst) in ADVSIMD_TWOHALFOP()
498 float16 a1, a2, b1, b2, c1, c2; in HELPER()
[all …]
H A Dmve_helper.c2829 DO_2OP_FP(OP##h, 2, float16, float16_##FN) \
2836 static inline float16 float16_abd(float16 a, float16 b, float_status *s) in DO_2OP_FP_ALL()
2850 static inline float16 float16_maxnuma(float16 a, float16 b, float_status *s) in DO_2OP_FP_ALL()
2860 static inline float16 float16_minnuma(float16 a, float16 b, float_status *s) in float16_minnuma()
2907 DO_VCADD_FP(vfcadd90h, 2, float16, float16_sub, float16_add)
2909 DO_VCADD_FP(vfcadd270h, 2, float16, float16_add, float16_sub)
2943 DO_VFMA(vfmah, 2, float16, false)
2945 DO_VFMA(vfmsh, 2, float16, true)
3015 DO_VCMLA(vcmul0h, 2, float16, 0, DO_VCMULH)
3017 DO_VCMLA(vcmul90h, 2, float16, 1, DO_VCMULH)
[all …]
H A Dsve_helper.c762 DO_ZPZZ_PAIR_FP(sve2_faddp_zpzz_h, float16, H1_2, float16_add)
766 DO_ZPZZ_PAIR_FP(sve2_fmaxnmp_zpzz_h, float16, H1_2, float16_maxnum)
770 DO_ZPZZ_PAIR_FP(sve2_fminnmp_zpzz_h, float16, H1_2, float16_minnum)
774 DO_ZPZZ_PAIR_FP(sve2_fmaxp_zpzz_h, float16, H1_2, float16_max)
778 DO_ZPZZ_PAIR_FP(sve2_fminp_zpzz_h, float16, H1_2, float16_min)
4246 DO_REDUCE(sve_faddv_h, float16, H1_2, float16_add, float16_zero) in DO_REDUCE() argument
4251 DO_REDUCE(sve_fminnmv_h, float16, H1_2, float16_minnum, 0x7E00) in DO_REDUCE()
4255 DO_REDUCE(sve_fmaxnmv_h, float16, H1_2, float16_maxnum, 0x7E00) in DO_REDUCE()
4259 DO_REDUCE(sve_fminv_h, float16, H1_2, float16_min, float16_infinity) in DO_REDUCE()
4263 DO_REDUCE(sve_fmaxv_h, float16, H1_2, float16_max, float16_chs(float16_infinity)) in DO_REDUCE()
[all …]
H A Dvfp_helper.c338 DO_VFP_cmp(h, float16, dh_ctype_f16, FPST_A32_F16) in DO_VFP_cmp() argument
510 float16 r = float32_to_float16(a, !ahp_mode, fpst); in HELPER()
536 float16 r = float64_to_float16(a, !ahp_mode, fpst); in HELPER()
674 float16 f16 = float16_squash_input_denormal(input, fpst); in HELPER()
682 float16 nan = f16; in HELPER()
929 float16 f16 = float16_squash_input_denormal(input, s); in HELPER()
937 float16 nan = f16; in HELPER()
1143 float16 ret; in HELPER()
/qemu/tests/fp/
H A Dwrap.c.inc116 WRAP_SF_TO_SF_IEEE(qemu_f16_to_f32, float16_to_float32, float16, float32)
117 WRAP_SF_TO_SF_IEEE(qemu_f16_to_f64, float16_to_float64, float16, float64)
119 WRAP_SF_TO_SF_IEEE(qemu_f32_to_f16, float32_to_float16, float32, float16)
120 WRAP_SF_TO_SF_IEEE(qemu_f64_to_f16, float64_to_float16, float64, float16)
175 WRAP_SF_TO_INT(qemu_f16_to_ui32, float16_to_uint32, float16, uint_fast32_t)
176 WRAP_SF_TO_INT(qemu_f16_to_ui64, float16_to_uint64, float16, uint_fast64_t)
184 WRAP_SF_TO_INT(qemu_f16_to_i32, float16_to_int32, float16, int_fast32_t)
185 WRAP_SF_TO_INT(qemu_f16_to_i64, float16_to_int64, float16, int_fast64_t)
204 float16_to_uint32_round_to_zero, float16, uint_fast32_t)
206 float16_to_uint64_round_to_zero, float16, uint_fast64_t)
[all …]
/qemu/fpu/
H A Dsoftfloat.c617 static void QEMU_FLATTEN float16_unpack_raw(FloatParts64 *p, float16 f) in float16_unpack_raw()
674 static float16 QEMU_FLATTEN float16_pack_raw(const FloatParts64 *p) in float16_pack_raw()
1665 static void float16a_unpack_canonical(FloatParts64 *p, float16 f, in float16a_unpack_canonical()
1672 static void float16_unpack_canonical(FloatParts64 *p, float16 f, in float16_unpack_canonical()
1685 static float16 float16a_round_pack_canonical(FloatParts64 *p, in float16a_round_pack_canonical()
1693 static float16 float16_round_pack_canonical(FloatParts64 *p, in float16_round_pack_canonical()
1885 static float16 QEMU_FLATTEN
1886 float16_addsub(float16 a, float16 b, float_status *status, bool subtract) in float16_addsub()
1897 float16 float16_add(float16 a, float16 b, float_status *status) in float16_add()
1902 float16 float16_sub(float16 a, float16 b, float_status *status) in float16_sub()
[all …]
H A Dsoftfloat-specialize.c.inc234 bool float16_is_quiet_nan(float16 a_, float_status *status)
273 bool float16_is_signaling_nan(float16 a_, float_status *status)
/qemu/target/ppc/
H A Dinternal.h224 void helper_compute_fprf_float16(CPUPPCState *env, float16 arg);
H A Dfpu_helper.c166 COMPUTE_FPRF(float16)
2674 VSX_CVT_FP_TO_FP_HP(xscvdphp, 1, float64, float16, VsrD(0), VsrH(3), 1)
2675 VSX_CVT_FP_TO_FP_HP(xscvhpdp, 1, float16, float64, VsrH(3), VsrD(0), 1)
2676 VSX_CVT_FP_TO_FP_HP(xvcvsphp, 4, float32, float16, VsrW(i), VsrH(2 * i + 1), 0)
2677 VSX_CVT_FP_TO_FP_HP(xvcvhpsp, 4, float16, float32, VsrH(2 * i + 1), VsrW(i), 0)
3377 typedef float64 extract_f16(float16, float_status *);
3379 static float64 extract_hf16(float16 in, float_status *fp_status) in extract_hf16()
H A Dcpu.h341 float16 f16[8];
/qemu/target/tricore/
H A Dfpu_helper.c378 float16 f_arg = make_float16(arg); in helper_hptof()
/qemu/target/i386/
H A Dcpu.h1555 float16 _h_ZMMReg[512 / 16];
/qemu/target/mips/tcg/
H A Dmsa_helper.c6307 static inline float16 float16_from_float32(int32_t a, bool ieee, in float16_from_float32()
6310 float16 f_val; in float16_from_float32()
6331 f_val = float16_to_float32((float16)a, ieee, status); in float32_from_float16()