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

2016-06-04 Thread Richard Henderson
On 05/29/2016 03:59 PM, peer.ad...@c-lab.de wrote: +uint32_t helper_ftouz(CPUTriCoreState *env, uint32_t arg) ... +uint32_t result; ... +return (uint32_t)result; Don't add pointless casts. r~

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

2016-05-30 Thread Bastian Koppelmann
On 05/30/2016 12:59 AM, peer.ad...@c-lab.de wrote: > From: Peer Adelt > > Converts a 32-bit floating point number to an unsigned int. The > result is rounded towards zero. > > Signed-off-by: Peer Adelt > --- > target-tricore/fpu_helper.c | 20 > target-tricore/helper.h

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

2016-05-29 Thread peer . adelt
From: Peer Adelt Converts a 32-bit floating point number to an unsigned int. The result is rounded towards zero. Signed-off-by: Peer Adelt --- target-tricore/fpu_helper.c | 20 target-tricore/helper.h | 1 + target-tricore/translate.c | 3 +++ 3 files changed, 24 in