From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDKeV-0001mo-Mn for qemu-devel@nongnu.org; Thu, 29 Mar 2012 15:04:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDKeT-0005aJ-To for qemu-devel@nongnu.org; Thu, 29 Mar 2012 15:04:55 -0400 Received: from mail-qc0-f173.google.com ([209.85.216.173]:50259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDKeT-0005Zu-Hh for qemu-devel@nongnu.org; Thu, 29 Mar 2012 15:04:53 -0400 Received: by qcsc20 with SMTP id c20so1601781qcs.4 for ; Thu, 29 Mar 2012 12:04:51 -0700 (PDT) Sender: Richard Henderson Message-ID: <4F74B24F.5090108@twiddle.net> Date: Thu, 29 Mar 2012 15:04:47 -0400 From: Richard Henderson MIME-Version: 1.0 References: <1332894743-27418-1-git-send-email-rth@twiddle.net> <1332894743-27418-13-git-send-email-rth@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 12/14] tcg-sparc: Use defines for temporaries. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On 03/29/2012 02:56 PM, Blue Swirl wrote: >> > + tcg_out_arithi(s, TCG_REG_T1, rs1, 31, SHIFT_SRA); >> > + tcg_out_sety(s, TCG_REG_T1); > By the way, since we assume V9+, this 32 bit division which uses the > register y could be changed (in some later patch) to use nicer 64 bit > division. > Good spotting. Although my next trick will be to make tcg changes such that v8plus can be a TCG_TARGET_REG_BITS == 64 host, and do proper 64-bit arithmetic in the %o/%g registers. r~