From patchwork Thu Mar 11 14:39:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 397499 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp381834jai; Thu, 11 Mar 2021 06:53:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJydhTUInthbGWPXULNp+1PzjrEjDA3a6TcZnN/gfwL1szzgZMQuOU76bYuu2vDctOfw3CiM X-Received: by 2002:a4a:e615:: with SMTP id f21mr6861337oot.91.1615474420791; Thu, 11 Mar 2021 06:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615474420; cv=none; d=google.com; s=arc-20160816; b=DnbT1HQ5AZwNIZq6jFislobKydZnFRePk9nY1FJTCRypaXfQNwFE8I3LL1TVQeQwWE V7JE0Emh4iJIMXslHlbvSDznGPmZXUKEtF41A76sq3G6iPbVJe3huPA4gaLxL7euGfUM gYseObA/la4YdaFedVEQ3OMfB55eq8eDFyGtfzDK/DvPENymkWS4/ofHBV12/tWsG9Db JQv2kDvySOfnnQYewdHg9B/alaLuUUIDQLPqADm5V7bVxMa3pjFqJchDfYaUAyzmpCuE F9q8hP2MvOtMhnHwDO4UcWz73IQP8TvWSHw1S32rJ1zmjhZLdlFk0yXdUgrH5QqUGHxp qFSg== 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=p6E9LDuPBslW5lnZ+lbP25axObg1A1JUNAlm8q5oVbA=; b=W/TrbAfStrnLy8BJafniRbl9hww0IoVUoEvlbSZq3fcASXZzkqIOJ6AjJpuVoy2Flo bIeuBmsPBAlC3OeTq8mbCmZ7Ms4ROQjsPeOQpmrmo+WOmdWQdIERXmT/lifLJuZ4PiaK DtpmQcCoNaWnT83+luNvX8SaQFjLaSJNB+q7GrMi1I4vYInJ7xsKIpfgq48X+pd7BCU5 oBXLpbS0fc/rA8Nzv20ppgxK+QallyJmH9/8ZMsBaiGaZf2j3prntLlfxkxJdTL3gVMn PjGhfWMgHuGGvRsRMIDt2lLEkZstTPVVeqWkXRXKTyk52jDEibQvRZp80d4lV1ET1lAk z3yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ASq7Kldh; 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 y192si2623907oie.225.2021.03.11.06.53.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 06:53:40 -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=ASq7Kldh; 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]:48540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKMh2-00024V-7X for patch@linaro.org; Thu, 11 Mar 2021 09:53:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMUo-0003pn-60 for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:02 -0500 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:38717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKMUb-0006eY-Sd for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:01 -0500 Received: by mail-qv1-xf35.google.com with SMTP id t5so2639438qvs.5 for ; Thu, 11 Mar 2021 06:40:49 -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=p6E9LDuPBslW5lnZ+lbP25axObg1A1JUNAlm8q5oVbA=; b=ASq7KldhmieksOJm09/u9RCvwCGSmMY+UY1zq5mX9bUQaCfi6F/IQbRN2eoAx1JmD9 LpEEMJETRGZzlp/Bsm80g2yabQ43LyYsZ28b39zjHQdsTgWZxxu8eaCxNLb6rkUdLUDb n4dhAoGJrkwkX/dQCUKR5DTwJ+OTM5UFWm5ANp8InpgrySxJUVW9mWYSsUFgHBveOfHU W6XImoD+TUES34EwBbg3SRmQkKdBvbWDdJT0CWAf/p//03hMM0+VGUs+8AMnD/ccDC4t H/gp8xdhAwF8Z4slEzKF5Zf+BRfCD8JA0DPy+Wf7m6kmA8VchvS0be4otXvu4IZ9Smk1 Mk8A== 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=p6E9LDuPBslW5lnZ+lbP25axObg1A1JUNAlm8q5oVbA=; b=jfrPt0irmbe4TCrospIySrxZVsU35YvEA7sCpYWHcwNNhyNWdWCtcJQKB0k3jeydKq 2iXwQE/cllgqy4gSTtm41IgASzkEFuMQaCZy2oRzR2kifGlJsFQIHrl0cAKo8Anr6M5P wFGn1wTr83rmj2B/eByzJ6aoY701vL1YD4x8AZjefl9B6l5X8IynLfGqIgGAqwhtaMG/ zckFGJw3oGtaG+5E/aTFsJcnV68HtclN+GLaMJhh0keklTLOhUAmjmUnyQaA/cnQC35o eSn97WfdpIFJTfQYfoU6qvWg849IzdR+cCPOPy8PzmLFxq00tz+Pt3sKwUK9cIIaGsvm 7Tng== X-Gm-Message-State: AOAM532oqvIJ58LQzD7EjN7sqe6Lp+be8mk6lLfe79DdJel4MYwk2K/m Z1r1ps9H/DGsFyKy1OxA4j7a8SfF7o7VSwHh X-Received: by 2002:ad4:4991:: with SMTP id t17mr7668608qvx.33.1615473648889; Thu, 11 Mar 2021 06:40:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:40:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 35/57] tcg/tci: Split out tcg_out_op_rrcl Date: Thu, 11 Mar 2021 08:39:36 -0600 Message-Id: <20210311143958.562625-36-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::f35; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf35.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 6c743a8fbd..8cc63124d4 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -341,6 +341,20 @@ static void tcg_out_op_rrs(TCGContext *s, TCGOpcode op, old_code_ptr[1] = s->code_ptr - old_code_ptr; } +static void tcg_out_op_rrcl(TCGContext *s, TCGOpcode op, + TCGReg r0, TCGReg r1, TCGCond c2, TCGLabel *l3) +{ + 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_out8(s, c2); + tci_out_label(s, l3); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} + static void tcg_out_op_rrrc(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1, TCGReg r2, TCGCond c3) { @@ -565,12 +579,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, break; CASE_32_64(brcond) - tcg_out_op_t(s, opc); - tcg_out_r(s, args[0]); - tcg_out_r(s, args[1]); - tcg_out8(s, args[2]); /* condition */ - tci_out_label(s, arg_label(args[3])); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_rrcl(s, opc, args[0], args[1], args[2], arg_label(args[3])); break; CASE_32_64(neg) /* Optional (TCG_TARGET_HAS_neg_*). */