Re: [Qemu-devel] [PATCH v4 2/4] target-tilegx: Add single floating point implementation

2015-12-23 Thread Richard Henderson
On 12/23/2015 01:48 PM, cheng...@emindsoft.com.cn wrote: +static float32 sfmt_to_float32(uint64_t sfmt) +{ +uint32_t sign = get_fsingle_sign(sfmt); +uint32_t man = get_fsingle_man(sfmt); +uint32_t exp = get_fsingle_exp(sfmt); +float32 f; + +if (get_fsingle_calc(sfmt) == TILEGX

Re: [Qemu-devel] [PATCH v4 2/4] target-tilegx: Add single floating point implementation

2015-12-24 Thread Chen Gang
On 12/24/15 07:07, Richard Henderson wrote: > On 12/23/2015 01:48 PM, cheng...@emindsoft.com.cn wrote: >> +static float32 sfmt_to_float32(uint64_t sfmt) >> +{ >> +uint32_t sign = get_fsingle_sign(sfmt); >> +uint32_t man = get_fsingle_man(sfmt); >> +uint32_t exp = get_fsingle_exp(sfmt);

Re: [Qemu-devel] [PATCH v4 2/4] target-tilegx: Add single floating point implementation

2015-12-27 Thread Chen Gang
On 12/24/15 23:52, Chen Gang wrote: > On 12/24/15 07:07, Richard Henderson wrote: > >> Moreover, I thought we agreed to do away with that CALC bit. >> After check again, I guess, we can stil reserve CALC bit: - Then we can remove float32_to_sfmt (use high 32-bit to save float32 directly). A