From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhWKo-0001eR-Jr for qemu-devel@nongnu.org; Sun, 21 Sep 2008 17:19:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhWKn-0001eB-77 for qemu-devel@nongnu.org; Sun, 21 Sep 2008 17:19:14 -0400 Received: from [199.232.76.173] (port=40569 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhWKn-0001e8-1M for qemu-devel@nongnu.org; Sun, 21 Sep 2008 17:19:13 -0400 Received: from relay01.mx.bawue.net ([193.7.176.67]:41217) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KhWKm-0005D9-Kh for qemu-devel@nongnu.org; Sun, 21 Sep 2008 17:19:12 -0400 Date: Sun, 21 Sep 2008 23:19:08 +0200 From: Thiemo Seufer Subject: Re: [Qemu-devel] [5281] Use the new concat_i32_i64 op for std and stda Message-ID: <20080921211908.GB22151@networkno.de> References: <200809211741.53544.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Paul Brook , qemu-devel@nongnu.org Blue Swirl wrote: > On 9/21/08, Paul Brook wrote: > > > Like these patches? > > > > > +static inline void tcg_gen_concat_i64_i64(TCGv dest, TCGv low, TCGv high) > > > +{ > > > + TCGv tmp = tcg_temp_new(TCG_TYPE_I64); > > > + tcg_gen_shli_i64(tmp, high, 32); > > > + tcg_gen_or_i64(dest, low, tmp); > > > + tcg_temp_free(tmp); > > > +} > > > > This should use concat_i32_i64 on 32-bit hosts. > > > > Ok with that change, the rename I suggested in my previous mail, and if you > > add documentation to tcg/README. > > Updated. I'll run a couple of tests. I noticed I could also use the complement ("split"?) to those instructions in the mips backend. Maybe the same is true for sparc. Thiemo