Re: [Qemu-devel] [PATCH 1/5] target-tricore: Added FTOUZ instruction

2016-10-07 Thread Richard Henderson
On 10/06/2016 09:20 AM, Bastian Koppelmann wrote: +if (!float32_eq(f_arg, make_float32(result), &env->fp_status)) { This is comparing a float (f_arg) with an integer (result), forced to be interpreted as a float. r~

[Qemu-devel] [PATCH 1/5] target-tricore: Added FTOUZ instruction

2016-10-06 Thread Bastian Koppelmann
Converts a 32-bit floating point number to an unsigned int. The result is rounded towards zero. Signed-off-by: Bastian Koppelmann --- target-tricore/fpu_helper.c | 42 ++ target-tricore/helper.h | 1 + target-tricore/translate.c | 3 +++ 3 files cha