From patchwork Mon Feb 8 02:37:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 378485 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4330868jah; Sun, 7 Feb 2021 19:26:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJz04/2b+tvcBA+VCCuOuglVA+795M5qsVm5CGWmlFvhgZjCGjmLGE2HVsTwksQM4yKs0RPx X-Received: by 2002:a25:31c2:: with SMTP id x185mr22024538ybx.93.1612754781347; Sun, 07 Feb 2021 19:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612754781; cv=none; d=google.com; s=arc-20160816; b=ORMYqLJFDNmO70xxDFbr9rs1I3wxGW1wO3rzlVK+ZwkLsLhJB1gPJXyFffonvvkpmu 2H9vgSt9x1ULeCtB1SwUYGa24KTKYOOvPJYlMiPfdF9WQNym851jOXO0b8GWan0SQ7aF ktLSc7Xi6NSQC28uum82vwky/zRKyL8LQWsxd86toqIrtqMxtFnjxbBMKv01aN50AJ8Y VOsAgd39ka9jQkMGmlo8802z6RmKJ50dz51b5echKt7FxMuc76oKu7p/Tliuk5C+XSOV q3QS/Jj7CkEYtoVYecZtO4eTaUFd6XpTA4JClUyo7CvmUXqgrKc8hJQYjlFtzde59yQa xYOw== 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=A8+oxGont/+bDGkQ3AaEp3aS+SzJCnRbYSKjy2ImL7Q=; b=po6XvTuYvN9HIZBeBsoiDwmR95l7Nxt8efxFMobL+UcmD2vDZiZI9Tgfo4E4s4y+1D SKsfGpC+BV9SFBzljwLzrB2jHDPah0Nbyb8ozACKX8T/fKC6O2rDpjiPL0zV5VqAmCY9 JTgH8rvbdpuzBx39Wa6A6bComyNeFJMiFvKMfaLBWuZApkiXSxtTZTJS1pX/qZvc4THy AGBTHGdYdlMcIUhClT/FjnWxgU4uHAhnNZr/aruhZ38cErY7or+rPM8qk9zUAp/3ZAiM kchX2/EPeEVLcDA6q+W0vX5AILODVCQhsn9hsrir3tUPSLmDFFqaYXZtc39u4R5hx33W i4KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NpZV3Ow/"; 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=pass (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 y14si15921579ybm.194.2021.02.07.19.26.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Feb 2021 19:26:21 -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=pass header.i=@linaro.org header.s=google header.b="NpZV3Ow/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8xBs-0007ZQ-SW for patch@linaro.org; Sun, 07 Feb 2021 22:26:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8wST-0002Wa-EQ for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:25 -0500 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:44122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8wSR-00067t-Lr for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:25 -0500 Received: by mail-pf1-x430.google.com with SMTP id t29so8740528pfg.11 for ; Sun, 07 Feb 2021 18:39:23 -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=A8+oxGont/+bDGkQ3AaEp3aS+SzJCnRbYSKjy2ImL7Q=; b=NpZV3Ow/aU0XNzhQC1v7M4F2aM8clgoz1KPFjKM1BJXbZ2aE1RZhWSUeXtqxTPoc8R FZehGRAMMHDZRqAOQuASyf2k6ci6pK8anfYTDagYzofkDAFM5m3j9xOiL4ZkIcFDYj4u hv2K8/3/P9Mg54J677wnEJCywbGOY1MrRDpnn/s9NCX1noqrBg13ZedwMOv09wa6k+a8 KJlgfEkXBVgurhigwMs0Hizz7v5RHKcPD2QkVIaoVEmqIJsGZAd6G9XiBUZv4iJxrpPw 7fJw9K1sLTG1zprvwS30i751dv3qorWLAutSRAx845LDtnAH/YrwjxLWguAph9YubHf5 OVAQ== 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=A8+oxGont/+bDGkQ3AaEp3aS+SzJCnRbYSKjy2ImL7Q=; b=rIEqOexT8JTQh9+SgjRKP2apt82aP1lmWCUGqWTTrOVKvnFwrk+Cw2HWXkIa17UUeL 8cO89M7SWq8SrRV3DV/KheWTvok9LDM/KatAu2BuZdtpMQrl7J/IwoG6Dvb+kXmbgEh2 XhGd9O4kGDQGWWS1dAD/KdQ5HifCKfAkeV1RP/owdrdf6zHTbUcxY8cuBOiEg4cs/5vd 7fsIqs2BbuOpQ4PTkN2r7c0CJaDyiKS1YScLCcqzr9LRDZxPmUcXYA3wtswcu7g2PktG EEih8f5dk2MnEe7GCsZV/W5hQxRiYWb7FJK3RjDobyb91LFFjKI30eHuzdsxogs4teHa cmXA== X-Gm-Message-State: AOAM530NGl4LmimSxjnJOot+LVLEsy+lheQAXaauS3Gp1Igzl4QUJSWf CyMytwqoPZIF0O8kPHTDf6f5d+5RNOgtUw== X-Received: by 2002:aa7:9790:0:b029:1d8:263e:cc9b with SMTP id o16-20020aa797900000b02901d8263ecc9bmr13845028pfp.2.1612751962402; Sun, 07 Feb 2021 18:39:22 -0800 (PST) Received: from localhost.localdomain (174-21-150-71.tukw.qwest.net. [174.21.150.71]) by smtp.gmail.com with ESMTPSA id 74sm650954pfw.53.2021.02.07.18.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 18:39:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 48/70] tcg/tci: Split out tcg_out_op_rrrrrc Date: Sun, 7 Feb 2021 18:37:30 -0800 Message-Id: <20210208023752.270606-49-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210208023752.270606-1-richard.henderson@linaro.org> References: <20210208023752.270606-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x430.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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.c.inc | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) -- 2.25.1 diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 5848779208..8eda159dde 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -355,6 +355,25 @@ static void tcg_out_op_rrrc(TCGContext *s, TCGOpcode op, old_code_ptr[1] = s->code_ptr - old_code_ptr; } +#if TCG_TARGET_REG_BITS == 32 +static void tcg_out_op_rrrrrc(TCGContext *s, TCGOpcode op, + TCGReg r0, TCGReg r1, TCGReg r2, + TCGReg r3, TCGReg r4, TCGCond c5) +{ + 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_out_r(s, r4); + tcg_out8(s, c5); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} +#endif + static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg val, TCGReg base, intptr_t offset) { @@ -473,15 +492,8 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, #if TCG_TARGET_REG_BITS == 32 case INDEX_op_setcond2_i32: - /* setcond2_i32 cond, t0, t1_low, t1_high, t2_low, t2_high */ - 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_out_r(s, args[4]); - tcg_out8(s, args[5]); /* condition */ - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_rrrrrc(s, opc, args[0], args[1], args[2], + args[3], args[4], args[5]); break; #endif