From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD6gc-0004ex-Rp for qemu-devel@nongnu.org; Sun, 27 Dec 2015 03:28:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aD6gZ-00063B-Ie for qemu-devel@nongnu.org; Sun, 27 Dec 2015 03:28:18 -0500 Received: from out1134-195.mail.aliyun.com ([42.120.134.195]:31221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD6gZ-00062m-4V for qemu-devel@nongnu.org; Sun, 27 Dec 2015 03:28:15 -0500 Message-ID: <567FA1D1.7060000@emindsoft.com.cn> Date: Sun, 27 Dec 2015 16:31:13 +0800 From: Chen Gang MIME-Version: 1.0 References: <1450907315-10135-1-git-send-email-chengang@emindsoft.com.cn> <1450907315-10135-3-git-send-email-chengang@emindsoft.com.cn> <567B292B.6070207@twiddle.net> <567C14BB.20405@emindsoft.com.cn> In-Reply-To: <567C14BB.20405@emindsoft.com.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 2/4] target-tilegx: Add single floating point implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , peter.maydell@linaro.org, cmetcalf@ezchip.com Cc: qemu-devel@nongnu.org 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). And in helper_fsingle_pack2, for CALC, we can return high 32-bit directly. Only for NCALC, we need process it in details. - I guess, most cases are for CALC, so it will let the performance a little better (need float32_to_sfmt, then sfmt_to_float32 again). Then we can only focus on NCAL in helper_fsingle_pack2. Thanks. > > OK, I will try, next. > > I will copy and reconstruct related code from qemu fpu implementation > instead of (u)int32/64_to_float32/64 functions (just like you said, I > guess). > > Hope I can finish within 2015-12-31. > > Thanks. > -- Chen Gang (陈刚) Open, share, and attitude like air, water, and life which God blessed