static inline void cond_t(int cond) { if (cond) set_t(); else clr_t(); }
void helper_fcmp_gt_FT(uint32_t t0, uint32_t t1) { CPU_FloatU f0, f1; f0.l = t0; f1.l = t1; if (float32_compare(f0.f, f1.f, &env->fp_status) == 1) set_t(); else clr_t(); }
void helper_fcmp_gt_DT(uint64_t t0, uint64_t t1) { CPU_DoubleU d0, d1; d0.ll = t0; d1.ll = t1; if (float64_compare(d0.d, d1.d, &env->fp_status) == 1) set_t(); else clr_t(); }
void helper_fcmp_gt_DT(CPUSH4State *env, float64 t0, float64 t1) { int relation; set_float_exception_flags(0, &env->fp_status); relation = float64_compare(t0, t1, &env->fp_status); if (unlikely(relation == float_relation_unordered)) { update_fpscr(env, GETPC()); } else if (relation == float_relation_greater) { set_t(env); } else { clr_t(env); } }
void helper_fcmp_gt_FT(float32 t0, float32 t1) { int relation; set_float_exception_flags(0, &env->fp_status); relation = float32_compare(t0, t1, &env->fp_status); if (unlikely(relation == float_relation_unordered)) { update_fpscr(GETPC()); } else if (relation == float_relation_greater) { set_t(); } else { clr_t(); } }