From patchwork Thu Mar 11 14:39:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 397494 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp380109jai; Thu, 11 Mar 2021 06:51:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiQsU1tDeKv5UbSIpL55ptnznvbujeKQU83j3VhvXdxNd3g1COmryP81BbVpJQieEbobtU X-Received: by 2002:a9d:3422:: with SMTP id v31mr7163524otb.260.1615474286361; Thu, 11 Mar 2021 06:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615474286; cv=none; d=google.com; s=arc-20160816; b=JuQERzVofqUet96vHzg3aM6zAE7c/Vwlv4z4c+O9jWvojPqMjWpyKMwTPw85ndrTfP yYxpPs7b+7iUXkoUMdMqOjej3uVHk6qIbAkvD+batHxNUyXfpwDepheT0tmCRW/z+y3h x2OR+WE3HVKZUC3fw6Ujunbhhvhu2eeokviuhCDOimovgAHhgW2YJJya8Vdqdc777XRx f7eeru2MV8emK1UTEnysXiO3zBZCJqaTiqakSivvXHO3M7x6uAt4lz8v839AzyEcsUr/ pa5Drx/kKnuWW9TpP4aH1vklE2+1a38SyezZIEXAKs52WmMMWTajxf4lhWHBgPEBaYdn lC2Q== 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=SG/0rGs1meQeKkwhUb5SspVN/bswEeFuzZz11b2NufVNgNyMgZ8iFQMtXh6gzMNIFE ifezNQV8Bf9CMjO/yrhavZHlmF/u6Xqme13Dfjaleu2Z7HC/ObgrxyHv99ZPR/6ISD6t t/6sRP23NM/R9uhrNDjh9temLeSbhce/mF21vPwk8iJeeCNar5N46v6JEX3zZnxYogtV rHIG9j6f7IeY4uFaeQExHG1N8ryhtHzUOvCWvF9XJzO2C3jjrE1UuMwaf+Yzae73GeHR HxbyAnhtAQTW4R5LedHtQs+vFrzltYk8v90slZJLLjOESuYujUwX0jBQSg71aYWaicd/ CXEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="y/gUPpn4"; 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 z127si2651819oia.229.2021.03.11.06.51.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 06:51:26 -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="y/gUPpn4"; 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]:39742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKMer-0006gH-Nb for patch@linaro.org; Thu, 11 Mar 2021 09:51:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMUm-0003oO-7B for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:01 -0500 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:33783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKMUZ-0006d3-VD for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:40:53 -0500 Received: by mail-qk1-x72a.google.com with SMTP id l4so20794749qkl.0 for ; Thu, 11 Mar 2021 06:40:46 -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=y/gUPpn4vimjc2E7/K+dN0nE1udC8cRm6EGyfIxzuryRHsda469ir55wkTnnba/oGL gNOoVJMb7I84kWaP0BJUEHkQcT67QT1Ix2UV7ngMx1ZGo4KjB+2EKj9cZnfRX+NA1roq VSMDG5okvcD7mGoLSw5Q+vjoYhzkCuzloBkneSVovu2I0OtYYk6Abekx4fx45B+u2ZzM 4V4oB+Jpd1uVliIP/m4izPFFGVGsIWTvmOVTPAkBqxINGnjXOZEMpd3IfOSlWYnxLzJ+ EZ3DB/G937c5SDNOSZF1QFJTl0AXplJytoeWhoYvxro5vigCpA7a+5VvhQFAXxzMLQC+ hROg== 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=kRAiYMDMatG5LPBr5rFjTTIqATcF3sS2Se1RtDik7jqsBCMP01cTz1ro9h+C5Wd11P ORMo7KmvODoLYMCnOEICMyjoa+dTqg4Zic03dlbSv4J0ObTEXbX7wzLXaB4c7q89o0jE wZ5NMecnBK/UzDgipBqcKlE+McxUM7WBRqWejl1Yc20YjXxkZyJk/FWHD7pBjfgM2Hvo 3p1Ji6qx5KrkT13IaN6TiNu0uoc/sB7A3iVu7jwVEwwblS2KafI4gIGjLXcAxAYJ+sGX LHJN0Zj5PG/KKA7rVu+gki/lKySFK5TNolXgRX5taRyyVuOtDBLGTXC+ePEku2HZd0qE cWIw== X-Gm-Message-State: AOAM533+QL9ffhVLdMp54RTKX62jt9Lki5ZfP8LHS4ALJP48IfSx+mo4 znO5NyaFXaSWTpQMWGjNdSml7/Snkq7vf3la X-Received: by 2002:a37:886:: with SMTP id 128mr8220909qki.430.1615473646231; Thu, 11 Mar 2021 06:40:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:40:45 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 33/57] tcg/tci: Split out tcg_out_op_rrrrrc Date: Thu, 11 Mar 2021 08:39:34 -0600 Message-Id: <20210311143958.562625-34-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::72a; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72a.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 | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 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 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