From 102bf2c63535122cba0d7917ed8cfb8cc1c7b14c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 24 Aug 2012 07:39:11 -0700 Subject: target-s390: Convert FLOGR Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target-s390x/cc_helper.c') diff --git a/target-s390x/cc_helper.c b/target-s390x/cc_helper.c index f1038be..e3bed16 100644 --- a/target-s390x/cc_helper.c +++ b/target-s390x/cc_helper.c @@ -399,6 +399,11 @@ static uint32_t cc_calc_sla_64(uint64_t src, int shift) return 2; } +static uint32_t cc_calc_flogr(uint64_t dst) +{ + return dst ? 2 : 0; +} + static uint32_t do_calc_cc(CPUS390XState *env, uint32_t cc_op, uint64_t src, uint64_t dst, uint64_t vr) { @@ -504,6 +509,9 @@ static uint32_t do_calc_cc(CPUS390XState *env, uint32_t cc_op, case CC_OP_SLA_64: r = cc_calc_sla_64(src, dst); break; + case CC_OP_FLOGR: + r = cc_calc_flogr(dst); + break; case CC_OP_NZ_F32: r = set_cc_nz_f32(dst); -- cgit v1.1