From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEoJg-0005XQ-6g for qemu-devel@nongnu.org; Wed, 28 Aug 2013 18:34:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEoJZ-0000iJ-J9 for qemu-devel@nongnu.org; Wed, 28 Aug 2013 18:34:20 -0400 Received: from mail-qe0-x22d.google.com ([2607:f8b0:400d:c02::22d]:40524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEoJZ-0000i8-Et for qemu-devel@nongnu.org; Wed, 28 Aug 2013 18:34:13 -0400 Received: by mail-qe0-f45.google.com with SMTP id 8so3144107qea.4 for ; Wed, 28 Aug 2013 15:34:13 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Wed, 28 Aug 2013 15:33:31 -0700 Message-Id: <1377729213-2704-4-git-send-email-rth@twiddle.net> In-Reply-To: <1377729213-2704-1-git-send-email-rth@twiddle.net> References: <1377729213-2704-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 3/5] tcg-arm: Use strd for tcg_out_arg_reg64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 5f71f24..a0a7539 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -1156,9 +1156,16 @@ static TCGReg tcg_out_arg_reg64(TCGContext *s, TCGReg argreg, if (argreg & 1) { argreg++; } - argreg = tcg_out_arg_reg32(s, argreg, arglo); - argreg = tcg_out_arg_reg32(s, argreg, arghi); - return argreg; + if (use_armv6_instructions && argreg >= 4 + && (arglo & 1) == 0 && arghi == arglo + 1) { + tcg_out_strd_8(s, COND_AL, arglo, + TCG_REG_CALL_STACK, (argreg - 4) * 4); + return argreg + 2; + } else { + argreg = tcg_out_arg_reg32(s, argreg, arglo); + argreg = tcg_out_arg_reg32(s, argreg, arghi); + return argreg; + } } #define TLB_SHIFT (CPU_TLB_ENTRY_BITS + CPU_TLB_BITS) -- 1.8.1.4