From patchwork Thu Mar 11 14:39:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 397505 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp384655jai; Thu, 11 Mar 2021 06:57:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMmNbWR3waCeK9OTYe8j1X6YrDp98e6GRqxQdzOP8S0PPW8t+rmX2MgqWUDcGkK6w+s2Q9 X-Received: by 2002:a5e:9908:: with SMTP id t8mr6700534ioj.101.1615474670189; Thu, 11 Mar 2021 06:57:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615474670; cv=none; d=google.com; s=arc-20160816; b=mBxE3ZQGh9S6CJ5SW68uY3c8bKy4wEwVDwTCmMyiQADAP5p9fclOZLdhRyNO0cDLpE fKcWSzYzAKGEAZ+p+eNYs3THefnm5tOyMYQkkZdof/iOd6vrau6jspvYp4GxJQKN13qt A+3904jzpuSgvoPKCLV3ffUEHBNi5l0T2lahC0Er4GdjeupvtB/qAetNzRzdr3/CNGda QPeFvpmXSWn+wKjjvwduIUL830X+Vn8h8rzz9ay1IkmkGBFIwXa31HitKd6XbsrCGcLx ncdrbQBPM/utmhGjMvtZYh05HQU0l5hWVI3CucxB1sX/tmnh6hAkpH+Fex1OkMCM+AfU dTYw== 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=RltB6tJRO1PShAvoUlO75Uo0j450X071u7i11eDg0EU=; b=Yn8OJrK88ekYNZW5tYPf9blVcjGIvyb3kKv+Nt4ZcC4JYZSM7vTRuyz6R8eT3kLJI+ nbm7yOwhVSj3ldEj8fNCHL2jfE9Xtkz/l/rbEH29jCGYTgNvrMtxTHPK+FGxtnfPaeK8 WZlOSfScQBrsQHpyy8WdxYIimFFPGA2LHCcSTbhRsZeQeZR4ALQM5cO7w+zmvHv3Xm01 IeDhF/8hQtCNe20ps/JRUOLlk0hZ4WKLEl7+eK7KZ6BcLTBoJIB9TONA1bFZdEluWekG TWk+5QJgft/IpLNAktReH6Jb1GyI4SZAO5wZWUOYAjzdFUVbziu71S0d2EJ2OpyS7MVu Thsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c85sGVMz; 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 r6si2789771ilo.4.2021.03.11.06.57.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 06:57:50 -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=c85sGVMz; 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]:37534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKMl3-00011G-Ep for patch@linaro.org; Thu, 11 Mar 2021 09:57:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMUx-0003ti-Qr for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:12 -0500 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:35042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKMUf-0006ek-De for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:11 -0500 Received: by mail-qk1-x72c.google.com with SMTP id d20so20806716qkc.2 for ; Thu, 11 Mar 2021 06:40:51 -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=RltB6tJRO1PShAvoUlO75Uo0j450X071u7i11eDg0EU=; b=c85sGVMz3JyN/FaEnc7QIfst3OXfclRQHs9fhY2aL1TX28gRB49bqqhsDWK0sroXA+ 0AMRBHgcPSxA+F3VncuNSutJptkCNR7FKFei5CBLJklH24R0Erj1DrbmFtLBEF1bSXp8 CrMFHltYl1m/8YmyucTJLgWMgzrU1d+SJUxbTA1L6vlvL8Y1xVKrVUCNNJ2CoVGPAEFg B+7K0RWE19j4/tv/kQ3bQZGVU6l54tRezDM1ZslCBwRc1o2e6xUCoG0nAuBOlQKxaGvy GIU7QtaaCVTeKyJmJHL++I6NnkAIjJpfSp1r1h2jBHB2o/MAFHk7abf6MH3PJEoVutmF CzGg== 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=RltB6tJRO1PShAvoUlO75Uo0j450X071u7i11eDg0EU=; b=P1oBNncut5Cot6lp5FdeRDJXqVipzVvOyFXyv9MbmGpIYK2le0FyPOkwKyLCbSNXax xxAyy8XL8mQJ6bxZuqDTm0/JHu58UZj4YDsy0MfU17uYZW6LOStfLGtBpdPPgtCG0s0o ph50BHhUmikIHrptoZq/9R5mnfITrcFAFdDbV2aaFytGGrdXf8KUnk3mHA8tpW/JrrrE J/k5rRHQ2JmwxWjFg9jA6JjVD701REpcEusEseWM6A762kXhLCek11iOkshIPzoALd/B qTVlPhtoUZO8UzV9huSQlqNXrnCuio091uAdrLleH65oTXFXHraej5CfbJcccm41XhE3 Y/rA== X-Gm-Message-State: AOAM531Gfhjgx+fkLzF3EVOpjDLYYIi2W8o1RZsNaFmVuMJ9wFyVfXZA biXSgKkFnhLBFXq3TjC4beV4B3qDa3xg1WiM X-Received: by 2002:a37:78b:: with SMTP id 133mr7873790qkh.109.1615473651236; Thu, 11 Mar 2021 06:40:51 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id d84sm2070324qke.53.2021.03.11.06.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:40:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 37/57] tcg/tci: Split out tcg_out_op_rrrr Date: Thu, 11 Mar 2021 08:39:38 -0600 Message-Id: <20210311143958.562625-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210311143958.562625-1-richard.henderson@linaro.org> References: <20210311143958.562625-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::72c; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72c.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 | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index f7595fbd65..c2bbd85130 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -385,6 +385,20 @@ static void tcg_out_op_rrrbb(TCGContext *s, TCGOpcode op, TCGReg r0, } #if TCG_TARGET_REG_BITS == 32 +static void tcg_out_op_rrrr(TCGContext *s, TCGOpcode op, + TCGReg r0, TCGReg r1, TCGReg r2, TCGReg r3) +{ + 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); + + 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) @@ -632,12 +646,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, old_code_ptr[1] = s->code_ptr - old_code_ptr; break; case INDEX_op_mulu2_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]); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_rrrr(s, opc, args[0], args[1], args[2], args[3]); break; #endif