From patchwork Thu Feb 4 01:44:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 376180 Delivered-To: patch@linaro.org Received: by 2002:a17:906:48d2:0:0:0:0 with SMTP id d18csp911260ejt; Wed, 3 Feb 2021 18:17:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqD93UXNqT8tyw49V1HkfCgQqs3sqIqljkoJeSUXq04gMiFC7udeIq6CMuKaBJAkj2rc3J X-Received: by 2002:a25:2502:: with SMTP id l2mr9169458ybl.229.1612405029807; Wed, 03 Feb 2021 18:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612405029; cv=none; d=google.com; s=arc-20160816; b=sOjxhKCr3ZE/A6qjuiUWVdbaE/qnBoW1hREFRHCUaaqxFoFC3iycaAkfmWhjTt4i/W qflXnYnyIoljcunZykwEoNwLVLI1c9qVeqZ3G3OXJrxu33zi5q/QQXZ74sgHLSmdE+9v zcMWm8Mlee9LPyxKF46rNUQSGw0V8iYRz/1dzJowBrBVUaMmbQhXEHRTb2EPkR1DQluF Bo5O+Kt4y7UD5/LQz04Wu1vYkoJtLR2hs3v9r5lW2aADwZ3stdpk0h0T9tQVDutANoW4 7W4pN6kOJdcD0efFhWRaDnhg8BMBzXiGop/QpzS5LCiLMoaZVglTGs7UEuQhHwXpFHly asmQ== 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=v8YBF7O/DOHSCTIsDFGzgG9s+eMvXezLyegZpBv+3f8=; b=zAs83AD40WnHe8E0AgcvNowmht77mSLqhiHP+1u7SYBjvoc/8D2FtiYv5O+wxRDJ66 ddNgrOuWsRj9CiboyESiq5tiPEf+ufS7sHmYgwfwhfqOk74Y0fGXuGsLwyc7qhSGkQ1p MgQOxwhfN/FubiXCakxA1xyYlFiH/vO+P9icLnlCswY5IrEzBIZGVa6oZiA5y/sO7cYO XGJrUeRDEwHp+5U4MPEbltYT/6ASDglbvJ05eUGpFis7LajFEHgW68yZ8a4e31egugN7 zdy8BSDqDHYJ6Zje3XhdwXbQfwLqmOcZi2NkfOOdvWmVgx7kOTqMEtZKR1GVZz1TLP+E ae0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qQZFErvE; 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 f91si4851977ybi.414.2021.02.03.18.17.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Feb 2021 18:17:09 -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=qQZFErvE; 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]:33796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7UCj-0000NM-53 for patch@linaro.org; Wed, 03 Feb 2021 21:17:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7TjH-0005Pg-2r for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:46:44 -0500 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:33838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7Tj3-0003xR-7i for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:46:39 -0500 Received: by mail-pf1-x42e.google.com with SMTP id m6so1088396pfk.1 for ; Wed, 03 Feb 2021 17:46:27 -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=v8YBF7O/DOHSCTIsDFGzgG9s+eMvXezLyegZpBv+3f8=; b=qQZFErvEvSf3WKH4o5e+pLASjbWG6DDNiVUGxJ6/LOHzlX5RVfIjbODitvuERaU1+0 GMETioNuVvTsb5nJoNepZx9N+AJsueL0LGH2f1kZnqkGfuUEOcLf1kysPVmAT/5P+GkD knK1H2fXssiikOHSbMfUPxkkKb4pZlJenC2iL9MZWb3uFxObDWqG7GfRvIW3SSd8oi5G 1q+2PkXN0F656IfgV36vUuMaH/4KQiFYxH4KGSQ0HDPYv89HUNKQD+uqEgQpXs24xwlv ypdZqhnUap9ya+m5Au8as+mKWUmED9jqOcyvU/enIdBG2PDJbBArphYOglDw0WOHIIO/ 0SZA== 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=v8YBF7O/DOHSCTIsDFGzgG9s+eMvXezLyegZpBv+3f8=; b=jPNXSgLPTHyE5I+0HnSWwhfIFw1omN37sU0ezkTRjHvMipANxTH81Sq599QOcIStvx IpxuMY8glyVEtuGEwG5s7ByDH+UMxA9Kp1IkeInR6Vzknu5zPRQ3XoopnDdZDqb1yRPN l/xfzgkew+a8vURFhJfO9HWdZ/1574svYqUb7U4SQXiw7MTSTMGr4GnTX3usfjm1M0Df dAvKiNga6lvSTpcq3ew5eSCth7VsQid8Doh8B+7KiUfcz+tObHdeNK6O+FYRxVek7XgT Q2pX9Uf40YRiAeAZkEnywXgPAlwglHyUuQ6uRadnL5B4Xk+EKkWK5DLT3/jeIw3pwny3 BclQ== X-Gm-Message-State: AOAM532EwvZ5bNE6ykerJhwAooM3nbQDG0lLs9yHWGooUM53z3CSSzKd JYAD3a7gksK3BKzotOFdkNNWQED6LJR7Ekym X-Received: by 2002:aa7:848c:0:b029:1d0:68f1:d6f1 with SMTP id u12-20020aa7848c0000b02901d068f1d6f1mr5769502pfn.21.1612403187046; Wed, 03 Feb 2021 17:46:27 -0800 (PST) Received: from localhost.localdomain (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id q132sm3835462pfq.171.2021.02.03.17.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 17:46:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 41/93] tcg/tci: Merge mov, not and neg operations Date: Wed, 3 Feb 2021 15:44:17 -1000 Message-Id: <20210204014509.882821-42-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210204014509.882821-1-richard.henderson@linaro.org> References: <20210204014509.882821-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42e.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.c | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) -- 2.25.1 diff --git a/tcg/tci.c b/tcg/tci.c index c979215332..225cb698e8 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -404,7 +404,7 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, tci_write_reg(regs, t0, tci_compare64(t1, t2, condition)); break; #endif - case INDEX_op_mov_i32: + CASE_32_64(mov) t0 = *tb_ptr++; t1 = tci_read_r(regs, &tb_ptr); tci_write_reg(regs, t0, t1); @@ -666,26 +666,21 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, tci_write_reg(regs, t0, bswap32(t1)); break; #endif -#if TCG_TARGET_HAS_not_i32 - case INDEX_op_not_i32: +#if TCG_TARGET_HAS_not_i32 || TCG_TARGET_HAS_not_i64 + CASE_32_64(not) t0 = *tb_ptr++; t1 = tci_read_r(regs, &tb_ptr); tci_write_reg(regs, t0, ~t1); break; #endif -#if TCG_TARGET_HAS_neg_i32 - case INDEX_op_neg_i32: +#if TCG_TARGET_HAS_neg_i32 || TCG_TARGET_HAS_neg_i64 + CASE_32_64(neg) t0 = *tb_ptr++; t1 = tci_read_r(regs, &tb_ptr); tci_write_reg(regs, t0, -t1); break; #endif #if TCG_TARGET_REG_BITS == 64 - case INDEX_op_mov_i64: - t0 = *tb_ptr++; - t1 = tci_read_r(regs, &tb_ptr); - tci_write_reg(regs, t0, t1); - break; case INDEX_op_tci_movi_i64: t0 = *tb_ptr++; t1 = tci_read_i64(&tb_ptr); @@ -815,20 +810,6 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, tci_write_reg(regs, t0, bswap64(t1)); break; #endif -#if TCG_TARGET_HAS_not_i64 - case INDEX_op_not_i64: - t0 = *tb_ptr++; - t1 = tci_read_r(regs, &tb_ptr); - tci_write_reg(regs, t0, ~t1); - break; -#endif -#if TCG_TARGET_HAS_neg_i64 - case INDEX_op_neg_i64: - t0 = *tb_ptr++; - t1 = tci_read_r(regs, &tb_ptr); - tci_write_reg(regs, t0, -t1); - break; -#endif #endif /* TCG_TARGET_REG_BITS == 64 */ /* QEMU specific operations. */