From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O956j-0006A4-67 for qemu-devel@nongnu.org; Mon, 03 May 2010 19:31:25 -0400 Received: from [140.186.70.92] (port=60622 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O956a-00069l-So for qemu-devel@nongnu.org; Mon, 03 May 2010 19:31:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O956C-0003OZ-3U for qemu-devel@nongnu.org; Mon, 03 May 2010 19:30:53 -0400 Received: from are.twiddle.net ([75.149.56.221]:45200) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O956B-0003OD-Tl for qemu-devel@nongnu.org; Mon, 03 May 2010 19:30:52 -0400 Received: from anchor.twiddle.home (anchor.twiddle.home [172.31.0.4]) by are.twiddle.net (Postfix) with ESMTPS id 6A28280C for ; Mon, 3 May 2010 16:30:50 -0700 (PDT) Received: from anchor.twiddle.home (anchor.twiddle.home [127.0.0.1]) by anchor.twiddle.home (8.14.4/8.14.4) with ESMTP id o43NUngm004314 for ; Mon, 3 May 2010 16:30:49 -0700 Received: (from rth@localhost) by anchor.twiddle.home (8.14.4/8.14.4/Submit) id o43NUmjj004312 for qemu-devel@nongnu.org; Mon, 3 May 2010 16:30:48 -0700 From: Richard Henderson Date: Mon, 3 May 2010 16:30:46 -0700 Message-Id: <1272929448-4223-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 0/2] two tcg improvements List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The first patch allows the x86-64 port to avoid the REX.W prefix on moves, by allowing reg-reg moves to be typed just as reg-imm moves already are. This does require trivial changes to each port. The second patch fixes an oversight in commit 86feb1c860dc38e9c89e787c5210e8191800385e whereby I only modified the 32-bit host versions of the inline functions and not the 64-bit host versions. This is visible on x86-64 host with arm guest in that we unnecessarily emit some MOVSLQ insns instead of plain 32-bit MOV insns. r~ Richard Henderson (2): tcg: Add TYPE parameter to tcg_out_mov. tcg: Use INDEX_op_qemu_ld32 for 32-bit results. tcg/arm/tcg-target.c | 2 +- tcg/hppa/tcg-target.c | 38 ++++++++++++++++++------------------ tcg/i386/tcg-target.c | 49 ++++++++++++++++++++++++----------------------- tcg/ia64/tcg-target.c | 3 +- tcg/mips/tcg-target.c | 28 +++++++++++++------------- tcg/ppc/tcg-target.c | 48 +++++++++++++++++++++++----------------------- tcg/ppc64/tcg-target.c | 10 ++++---- tcg/s390/tcg-target.c | 2 +- tcg/sparc/tcg-target.c | 10 ++++---- tcg/tcg-op.h | 8 +++++++ tcg/tcg.c | 12 +++++----- tcg/x86_64/tcg-target.c | 20 ++++++++++-------- 12 files changed, 121 insertions(+), 109 deletions(-)