Home
last modified time | relevance | path

Searched refs:float_rounding_mode (Results 1 – 17 of 17) sorted by relevance

/openbmc/qemu/target/m68k/
H A Dsoftfloat.c269 user_rnd_mode = status->float_rounding_mode; in floatx80_lognp1()
271 status->float_rounding_mode = float_round_nearest_even; in floatx80_lognp1()
339 status->float_rounding_mode = user_rnd_mode; in floatx80_lognp1()
405 status->float_rounding_mode = user_rnd_mode; in floatx80_lognp1()
467 user_rnd_mode = status->float_rounding_mode; in floatx80_logn()
469 status->float_rounding_mode = float_round_nearest_even; in floatx80_logn()
526 status->float_rounding_mode = user_rnd_mode; in floatx80_logn()
572 status->float_rounding_mode = user_rnd_mode; in floatx80_logn()
623 user_rnd_mode = status->float_rounding_mode; in floatx80_log10()
625 status->float_rounding_mode = float_round_nearest_even; in floatx80_log10()
[all …]
/openbmc/qemu/include/fpu/
H A Dsoftfloat-helpers.h64 status->float_rounding_mode = val; in set_float_rounding_mode()
146 return status->float_rounding_mode; in get_float_rounding_mode()
H A Dsoftfloat-types.h382 FloatRoundMode float_rounding_mode; member
/openbmc/qemu/fpu/
H A Dsoftfloat.c236 s->float_rounding_mode == float_round_nearest_even);
3065 parts_round_to_int(&p, s->float_rounding_mode, 0, s, &float16_params); in float16_round_to_int()
3074 parts_round_to_int(&p, s->float_rounding_mode, 0, s, &float32_params); in float32_round_to_int()
3083 parts_round_to_int(&p, s->float_rounding_mode, 0, s, &float64_params); in float64_round_to_int()
3092 parts_round_to_int(&p, s->float_rounding_mode, 0, s, &bfloat16_params); in bfloat16_round_to_int()
3101 parts_round_to_int(&p, s->float_rounding_mode, 0, s, &float128_params); in float128_round_to_int()
3113 parts_round_to_int(&p, status->float_rounding_mode, 0, status, in floatx80_round_to_int()
3345 return float16_to_int8_scalbn(a, s->float_rounding_mode, 0, s); in float16_to_int8()
3350 return float16_to_int16_scalbn(a, s->float_rounding_mode, 0, s); in float16_to_int16()
3355 return float16_to_int32_scalbn(a, s->float_rounding_mode, 0, s); in float16_to_int32()
[all …]
H A Dsoftfloat-parts.c.inc263 switch (s->float_rounding_mode) {
376 switch (s->float_rounding_mode) {
486 a->sign = s->float_rounding_mode == float_round_down;
723 a->sign = s->float_rounding_mode == float_round_down;
/openbmc/qemu/target/hexagon/
H A Dfma_emu.c318 switch (fp_status->float_rounding_mode) { in accum_round_float64()
365 switch (fp_status->float_rounding_mode) { in accum_round_float64()
404 switch (fp_status->float_rounding_mode) { in accum_round_float64()
/openbmc/qemu/tests/fp/
H A Dwrap.c.inc171 qsf.float_rounding_mode = sf_rounding_to_qemu(round); \
331 qsf.float_rounding_mode = sf_rounding_to_qemu(round); \
363 qsf.float_rounding_mode = sf_rounding_to_qemu(round); \
417 qsf.float_rounding_mode = sf_rounding_to_qemu(round); \
434 qsf.float_rounding_mode = sf_rounding_to_qemu(round);
446 qsf.float_rounding_mode = sf_rounding_to_qemu(round);
H A Dfp-bench.c618 soft_status.float_rounding_mode = mode; in set_soft_precision()
H A Dfp-test.c970 qsf.float_rounding_mode = sf_rounding_to_qemu(rmode); in run_test()
/openbmc/qemu/target/i386/tcg/
H A Dfpu_helper.c1186 FloatRoundMode save_mode = env->fp_status.float_rounding_mode; in helper_f2xm1()
1189 env->fp_status.float_rounding_mode = float_round_nearest_even; in helper_f2xm1()
1205 env->fp_status.float_rounding_mode = save_mode; in helper_f2xm1()
1285 env->fp_status.float_rounding_mode = save_mode; in helper_f2xm1()
1486 FloatRoundMode save_mode = env->fp_status.float_rounding_mode; in helper_fpatan()
1489 env->fp_status.float_rounding_mode = float_round_nearest_even; in helper_fpatan()
1796 env->fp_status.float_rounding_mode = save_mode; in helper_fpatan()
2124 FloatRoundMode save_mode = env->fp_status.float_rounding_mode; in helper_fyl2xp1()
2127 env->fp_status.float_rounding_mode = float_round_nearest_even; in helper_fyl2xp1()
2142 env->fp_status.float_rounding_mode = save_mode; in helper_fyl2xp1()
[all …]
/openbmc/qemu/target/arm/tcg/
H A Dvfp_helper.c428 FloatRoundMode oldmode = fpst->float_rounding_mode; \
429 fpst->float_rounding_mode = float_round_nearest_even; \
431 fpst->float_rounding_mode = oldmode; \
668 switch (fpst->float_rounding_mode) { in round_to_inf()
/openbmc/qemu/target/i386/
H A Dops_sse.h604 FloatRoundMode prev_rounding_mode = env->sse_status.float_rounding_mode; in glue()
616 env->sse_status.float_rounding_mode = prev_rounding_mode; in glue()
1721 prev_rounding_mode = env->sse_status.float_rounding_mode; in glue()
1735 env->sse_status.float_rounding_mode = prev_rounding_mode; in glue()
1745 prev_rounding_mode = env->sse_status.float_rounding_mode; in glue()
1759 env->sse_status.float_rounding_mode = prev_rounding_mode; in glue()
1770 prev_rounding_mode = env->sse_status.float_rounding_mode; in glue()
1785 env->sse_status.float_rounding_mode = prev_rounding_mode; in glue()
1795 prev_rounding_mode = env->sse_status.float_rounding_mode; in glue()
1810 env->sse_status.float_rounding_mode = prev_rounding_mode; in glue()
/openbmc/qemu/target/alpha/
H A Dfpu_helper.c488 return do_cvttq(env, a, FP_STATUS.float_rounding_mode); in helper_cvttq()
H A Dtranslate.c587 offsetof(CPUAlphaState, fp_status.float_rounding_mode)); in gen_qual_roundmode()
/openbmc/qemu/target/ppc/
H A Dfpu_helper.c1619 tstat.float_rounding_mode = float_round_to_odd; in helper_xsaddqp()
1691 tstat.float_rounding_mode = float_round_to_odd; in helper_xsmulqp()
1765 tstat.float_rounding_mode = float_round_to_odd; in helper_xsdivqp()
2098 tstat.float_rounding_mode = float_round_to_odd; \
2709 tstat.float_rounding_mode = float_round_to_odd; in helper_XSCVQPDP()
3309 tstat.float_rounding_mode = float_round_to_odd; in helper_xssqrtqp()
3335 tstat.float_rounding_mode = float_round_to_odd; in helper_xssubqp()
/openbmc/qemu/target/s390x/tcg/
H A Dfpu_helper.c417 int ret = env->fpu_status.float_rounding_mode; in s390_swap_bfp_rounding_mode()
/openbmc/qemu/target/riscv/
H A Dvector_helper.c4024 if ((s->float_rounding_mode == float_round_to_zero) || in RVVCALL()
4025 ((s->float_rounding_mode == float_round_down) && !sign) || in RVVCALL()
4026 ((s->float_rounding_mode == float_round_up) && sign)) { in RVVCALL()