From 8f75983db8d67bce42332db7b38c62e2d45a5c7f Mon Sep 17 00:00:00 2001 From: Bastian Koppelmann Date: Thu, 6 Oct 2016 16:46:36 +0200 Subject: target-tricore: Added FTOUZ instruction Converts a 32-bit floating point number to an unsigned int. The result is rounded towards zero. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target/tricore/translate.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/tricore/translate.c') diff --git a/target/tricore/translate.c b/target/tricore/translate.c index 36f734a662..eb6fdc3ca4 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -6698,6 +6698,9 @@ static void decode_rr_divide(CPUTriCoreState *env, DisasContext *ctx) case OPC2_32_RR_ITOF: gen_helper_itof(cpu_gpr_d[r3], cpu_env, cpu_gpr_d[r1]); break; + case OPC2_32_RR_FTOUZ: + gen_helper_ftouz(cpu_gpr_d[r3], cpu_env, cpu_gpr_d[r1]); + break; default: generate_trap(ctx, TRAPC_INSN_ERR, TIN2_IOPC); } -- cgit v1.2.3