Home
last modified time | relevance | path

Searched refs:rmode (Results 1 – 14 of 14) sorted by relevance

/openbmc/qemu/tests/fp/
H A Dfp-test.c127 static bool is_allowed(unsigned op, int rmode) in is_allowed() argument
130 if (rmode == softfloat_round_odd) { in is_allowed()
171 static void do_testfloat(int op, int rmode, bool exact) in do_testfloat() argument
200 if (!is_allowed(op, rmode)) { in do_testfloat()
267 test_a_f16_z_ui32_rx(slow_f16_to_ui32, qemu_f16_to_ui32, rmode, exact); in do_testfloat()
270 test_a_f16_z_ui64_rx(slow_f16_to_ui64, qemu_f16_to_ui64, rmode, exact); in do_testfloat()
273 test_a_f16_z_i32_rx(slow_f16_to_i32, qemu_f16_to_i32, rmode, exact); in do_testfloat()
276 test_a_f16_z_i64_rx(slow_f16_to_i64, qemu_f16_to_i64, rmode, exact); in do_testfloat()
307 test_az_f16_rx(slow_f16_roundToInt, qemu_f16_roundToInt, rmode, exact); in do_testfloat()
364 test_a_f32_z_ui32_rx(slow_f32_to_ui32, qemu_f32_to_ui32, rmode, exact); in do_testfloat()
[all …]
/openbmc/qemu/fpu/
H A Dsoftfloat.c856 static int64_t parts64_float_to_sint(FloatParts64 *p, FloatRoundMode rmode,
859 static int64_t parts128_float_to_sint(FloatParts128 *p, FloatRoundMode rmode,
866 static uint64_t parts64_float_to_uint(FloatParts64 *p, FloatRoundMode rmode,
869 static uint64_t parts128_float_to_uint(FloatParts128 *p, FloatRoundMode rmode,
877 FloatRoundMode rmode,
880 FloatRoundMode rmode,
3122 int8_t float16_to_int8_scalbn(float16 a, FloatRoundMode rmode, int scale, in float16_to_int8_scalbn() argument
3128 return parts_float_to_sint(&p, rmode, scale, INT8_MIN, INT8_MAX, s); in float16_to_int8_scalbn()
3131 int16_t float16_to_int16_scalbn(float16 a, FloatRoundMode rmode, int scale, in float16_to_int16_scalbn() argument
3137 return parts_float_to_sint(&p, rmode, scale, INT16_MIN, INT16_MAX, s); in float16_to_int16_scalbn()
[all …]
H A Dsoftfloat-parts.c.inc1068 static bool partsN(round_to_int_normal)(FloatPartsN *a, FloatRoundMode rmode,
1081 switch (rmode) {
1149 switch (rmode) {
1193 static void partsN(round_to_int)(FloatPartsN *a, FloatRoundMode rmode,
1207 if (parts_round_to_int_normal(a, rmode, scale, fmt->frac_size)) {
1226 static int64_t partsN(float_to_sint)(FloatPartsN *p, FloatRoundMode rmode,
1253 if (parts_round_to_int_normal(p, rmode, scale, N - 2)) {
1295 static uint64_t partsN(float_to_uint)(FloatPartsN *p, FloatRoundMode rmode,
1321 if (parts_round_to_int_normal(p, rmode, scale, N - 2)) {
1358 FloatRoundMode rmode,
[all …]
/openbmc/u-boot/common/
H A Dcli_hush.c1774 reserved_style rmode, skip_more_in_this_rmode=RES_XXXX; local
1814 rmode = pi->r_mode;
1815 …debug_printf("rmode=%d if_code=%d next_if_code=%d skip_more=%d\n", rmode, if_code, next_if_code,…
1816 if (rmode == skip_more_in_this_rmode && flag_skip) {
1822 if (rmode == RES_THEN || rmode == RES_ELSE) if_code = next_if_code;
1823 if (rmode == RES_THEN && if_code) continue;
1824 if (rmode == RES_ELSE && !if_code) continue;
1825 if (rmode == RES_ELIF && !if_code) break;
1826 if (rmode == RES_FOR && pi->num_progs) {
1860 if (rmode == RES_IN) continue;
[all …]
/openbmc/qemu/target/ppc/
H A Dfpu_helper.c3028 #define VSX_ROUND(op, nels, tp, fld, rmode, sfifprf) \ argument
3037 if (rmode != FLOAT_ROUND_CURRENT) { \
3039 set_float_rounding_mode(rmode, &env->fp_status); \
3060 if (rmode != FLOAT_ROUND_CURRENT) { \
3200 uint8_t rmode = 0; in helper_xsrqpi() local
3206 rmode = float_round_ties_away; in helper_xsrqpi()
3208 rmode = env->fpscr & FP_RN; in helper_xsrqpi()
3212 rmode = float_round_nearest_even; in helper_xsrqpi()
3215 rmode = float_round_to_zero; in helper_xsrqpi()
3218 rmode = float_round_up; in helper_xsrqpi()
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/rdist/rdist-6.1.5/
H A Drdist-6.1.5-lfs.patch55 rname, lmode, rmode);
H A Drdist-6.1.5-cleanup.patch345 unsigned short rmode;
/openbmc/qemu/target/arm/
H A Dinternals.h394 static inline FloatRoundMode arm_rmode_to_sf(ARMFPRounding rmode) in arm_rmode_to_sf() argument
396 assert((unsigned)rmode < ARRAY_SIZE(arm_rmode_to_sf_map)); in arm_rmode_to_sf()
397 return arm_rmode_to_sf_map[rmode]; in arm_rmode_to_sf()
/openbmc/qemu/target/arm/tcg/
H A Dtranslate.h827 static inline TCGv_i32 gen_set_rmode(ARMFPRounding rmode, TCGv_ptr fpst) in gen_set_rmode() argument
829 TCGv_i32 new = tcg_constant_i32(arm_rmode_to_sf(rmode)); in gen_set_rmode()
H A Dtranslate-a64.c8784 const FPScalar1 *f, int rmode, in do_fp1_scalar_with_fpsttype() argument
8798 if (rmode >= 0) { in do_fp1_scalar_with_fpsttype()
8799 tcg_rmode = gen_set_rmode(rmode, fpst); in do_fp1_scalar_with_fpsttype()
8822 if (rmode >= 0) { in do_fp1_scalar_with_fpsttype()
8829 const FPScalar1 *f, int rmode) in do_fp1_scalar() argument
8831 return do_fp1_scalar_with_fpsttype(s, a, f, rmode, in do_fp1_scalar()
8837 const FPScalar1 *f, int rmode) in do_fp1_scalar_ah() argument
8839 return do_fp1_scalar_with_fpsttype(s, a, f, rmode, select_ah_fpst(s, a->esz)); in do_fp1_scalar_ah()
9123 ARMFPRounding rmode) in TRANS()
9130 tcg_rmode = gen_set_rmode(rmode, tcg_fpstatus); in TRANS()
[all …]
H A Dvfp_helper.c490 uint32_t HELPER(set_rmode)(uint32_t rmode, float_status *fp_status) in HELPER()
493 set_float_rounding_mode(rmode, fp_status); in HELPER()
H A Dtranslate-mve.c587 ARMFPRounding rmode, bool u)
615 fn(tcg_env, qd, qm, tcg_constant_i32(arm_rmode_to_sf(rmode)));
H A Dvec_helper.c2757 uint32_t rmode = simd_data(desc); \
2760 set_float_rounding_mode(rmode, fpst); \
2781 uint32_t rmode = simd_data(desc); \
2784 set_float_rounding_mode(rmode, fpst); \
H A Dmve_helper.c3303 void *vd, void *vm, uint32_t rmode) \
3314 set_float_rounding_mode(rmode, base_fpst); \