From patchwork Wed Feb 17 20:20:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 383892 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3131593jao; Wed, 17 Feb 2021 13:01:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvyhua+S9iouYhAY7q8RkOxQIWEF5m2ztPiREPxrg4nlZtCQjcRhnL1gmlx3vkLRwNDOLb X-Received: by 2002:a25:aa43:: with SMTP id s61mr2209945ybi.32.1613595704334; Wed, 17 Feb 2021 13:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613595704; cv=none; d=google.com; s=arc-20160816; b=KmQFa3lqlhYdAAqZzB2BzL1dxyU2+ys/D9Kw2XhDWa3bxp22R5medbpF2b6K+rU5Ml Ny5nH9yLFN8DCx1k1tS+EYR3EuKDuT+qh0/cdG1oVou24dwq4f5HVPdz732lZWX5DUMS LIiWJLcKwo0MZrHluJNrNYGGyxnH4il+menB90ZVxH/Ld80B0T0CJIT78igwtmAb2ki+ WDU4aO/e1cP7Z1rw9VHIebULb7N3/jdUgrYZIUGWCpjbsGHjK/PrBXtKIFvFay96JpC/ uqK+yCG8ari1fzZoolLfbsO6sJ23U9/vb1wTmEv0UchVcMEWLd39xoOgz/uoau6WsB2H QFww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=FuCnYTOQyWEVo9ZyllKi/tHo7oVf70VfVQ0xN8tYC5M=; b=hbODG+Dfi6pCErBmzp7GPpM9nG5vyPyvYDZSjMd2zxjc4PL8bKGgj4QxmqgNW+5WFX MEWft726pxRZp9ICxY7A8aeTzfjo/K1K/1eQR5U3k6YGHxwUjwLirpSS3Fypc4CgFwM7 /mSZJ6z9hhpl7CHWW8laTNtL3buT/qBCq9PW4Imz9dXGEyY3xJbhDp+F4+SPxtXyq4/g 9yHsXli34yIBLEHx/q2QH+lO+QwnAXznvzBJPUy9PvvUzKDoavZeWkCVrMCpOdg/jSyg KhKUPnTWnGVjhqxDdXIjgwLRfH1BfJYLwbyLnqMngpJK3BHSV9ZBox/ma7ftGyHOBJQl Ovaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=I06pMo94; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f36si3514141ybi.328.2021.02.17.13.01.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Feb 2021 13:01:44 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=I06pMo94; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCTx9-000553-Pc for patch@linaro.org; Wed, 17 Feb 2021 16:01:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCTMi-0001aP-7x for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:24:04 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:43164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCTMg-0007gU-Cw for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:24:04 -0500 Received: by mail-pf1-x432.google.com with SMTP id c11so9143656pfp.10 for ; Wed, 17 Feb 2021 12:24:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FuCnYTOQyWEVo9ZyllKi/tHo7oVf70VfVQ0xN8tYC5M=; b=I06pMo94sz0CYmA/RKHLRjBzExP9HBEsEXXfKFyPqrF2dYGnxFfwcGHcCYXfvw/pVU MtVO4VX5VYjMKB/bRQa9CPco4G89eGvj/WmmTw1gFh4iEUE39Mf6PZugHYtSJ8IN1zhA RQcqELfTfY5D2Yk2i1nl2kdnskRJTNM8rcHg45MZ3yqDDdd3p2YR2CqQCIp02FkJEh+u W0mdcIgy4JTycKChMy83nekYqCDAGPb3V50PMDLRt6rbKJ6qbHgvxIuaULVENF+N9Cf5 cZNnecYyTzQysKEPj8NMsvQ98W+1jqzLtSFVlgknT/110IqzIrG+kIDrGfZ7twgSPhih qgDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FuCnYTOQyWEVo9ZyllKi/tHo7oVf70VfVQ0xN8tYC5M=; b=f8ZRio9D4AuPSxue71i2O/nXAfgjNTxcPVGvy+VKS1kBnem20g50FzkTf7cc3tD68q 1ZkvJx6pkhXWyPwFkjQ3lIhpQReV8Oscxh4V9J2X2pIn0nspyzsa7NII+b+FZ/MV+RKP u9Sa1pq7kjDqozLM4xQQie/cusCwXia9Fb/Yuvhe4XeG2xxNTfiTIT9c6NF69jwsMPjy znVZNBCbTXo7mfEtbQby5QMXu9g7Sdnb07ELpO2zzo3e2LQJ1ABSvh5ez+NrZ2GzRPZn vEIBfhLmVaSZHYycPkaOSgX39GtH6EjKTLuzKOnPb86W/Gb9Uiy/Bn21C569I8K/G4+c 95zA== X-Gm-Message-State: AOAM533AFZTkB+4zbGGVBCOen0xGOTbKRpx94jobQYoqiQvWvujJTnUY L46u5eyH7j/vjVj+yq+yBDYW9AV5reof5A== X-Received: by 2002:a05:6a00:894:b029:1dc:2f68:5f0 with SMTP id q20-20020a056a000894b02901dc2f6805f0mr981579pfj.23.1613593441121; Wed, 17 Feb 2021 12:24:01 -0800 (PST) Received: from localhost.localdomain (047-051-160-125.biz.spectrum.com. [47.51.160.125]) by smtp.gmail.com with ESMTPSA id v126sm3232038pfv.163.2021.02.17.12.23.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 12:24:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 53/71] tcg/tci: Split out tcg_out_op_rrrrcl Date: Wed, 17 Feb 2021 12:20:18 -0800 Message-Id: <20210217202036.1724901-54-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210217202036.1724901-1-richard.henderson@linaro.org> References: <20210217202036.1724901-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sw@weilnetz.de, alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.c.inc | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) -- 2.25.1 diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index c2bbd85130..fb4aacaca3 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -399,6 +399,23 @@ static void tcg_out_op_rrrr(TCGContext *s, TCGOpcode op, old_code_ptr[1] = s->code_ptr - old_code_ptr; } +static void tcg_out_op_rrrrcl(TCGContext *s, TCGOpcode op, + TCGReg r0, TCGReg r1, TCGReg r2, TCGReg r3, + TCGCond c4, TCGLabel *l5) +{ + uint8_t *old_code_ptr = s->code_ptr; + + tcg_out_op_t(s, op); + tcg_out_r(s, r0); + tcg_out_r(s, r1); + tcg_out_r(s, r2); + tcg_out_r(s, r3); + tcg_out8(s, c4); + tci_out_label(s, l5); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} + static void tcg_out_op_rrrrrc(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1, TCGReg r2, TCGReg r3, TCGReg r4, TCGCond c5) @@ -636,14 +653,8 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, args[3], args[4], args[5]); break; case INDEX_op_brcond2_i32: - tcg_out_op_t(s, opc); - tcg_out_r(s, args[0]); - tcg_out_r(s, args[1]); - tcg_out_r(s, args[2]); - tcg_out_r(s, args[3]); - tcg_out8(s, args[4]); /* condition */ - tci_out_label(s, arg_label(args[5])); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_rrrrcl(s, opc, args[0], args[1], args[2], + args[3], args[4], arg_label(args[5])); break; case INDEX_op_mulu2_i32: tcg_out_op_rrrr(s, opc, args[0], args[1], args[2], args[3]);