From patchwork Wed Feb 17 20:19:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 383859 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3114987jao; Wed, 17 Feb 2021 12:31:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJz23fIEN4npIIm+6sl0aCYj7J8Oo0YO6H+j51jdvwoKF8P8ZodB19gDVhkI8Dxgm8T4yvb5 X-Received: by 2002:a25:412:: with SMTP id 18mr1850193ybe.366.1613593913046; Wed, 17 Feb 2021 12:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613593913; cv=none; d=google.com; s=arc-20160816; b=MuIc18QFHmaxAyZJ2zqbMw5fTOnUnNjb9kR9O9sanr79npcGrW6rmAEh5Am6mLiLQm R6+VD8W7PvOf4atAXYGiwoETft3z7V15M9tiUbM869uxuQt9mKfv4D0p3fDKiNZi5NzU icCDIm4hH+lqB+DipCHH+ExNxaeEP3/FVAriKsjppotVGgLOJ9NTaahEBU26VRWfrKe+ kBDpZ29+weSSrvciLHfOKjfPqCVbCcpqHzbclpSIXDns9VuCt25oP0KKsJVT2FhKnUhX orcdXcda+AyfM5btgEKO89O/d0jw+kV9TFEBpGQ10w5efRWppud84Ei7e6JvlijLkt3E 1Ucw== 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=nlAJBrBE2gOeL/pHL/++6ehY/SIfIXhi3tsdcdL4xk0=; b=IKRBMwhn+ru0gd2R8NQTcA19F9pfZunbnKaNTuLACgIPx0p2NtFn+Lk4n9zwjczHj4 Ix1LmP4g47WNS65WaUA214nQEHZmGYG7aRUJ0ZJOgmtfdRouegwg4cCx+fsggzW+hn0U 8IIk3liPSti/Dw8L07AGXQGyiUNS6DKZWq1NyhxEfqTUKq4jHmDfamCknwBfaaLuPglU Xwt4F3oh3Z80KuBfjEESc/ca+HMU9ntEosFgpBpiRK4gjgPGxpx/1eS0HYTUn7Jwy0N2 6+WCKqvNF31XT55b+h1JTRDtwmAEt5u5TekuXIA7gbcKsX4tD2IpCJZdq6V0s3Tm55yO NfKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cmbFUgyf; 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 p21si2985587ybg.196.2021.02.17.12.31.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Feb 2021 12:31:53 -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=cmbFUgyf; 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]:40264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCTUF-0007xQ-TN for patch@linaro.org; Wed, 17 Feb 2021 15:31:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCTLI-0007u0-4p for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:22:36 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:41788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCTLG-0007H0-K9 for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:22:35 -0500 Received: by mail-pg1-x52b.google.com with SMTP id t11so9205589pgu.8 for ; Wed, 17 Feb 2021 12:22:34 -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=nlAJBrBE2gOeL/pHL/++6ehY/SIfIXhi3tsdcdL4xk0=; b=cmbFUgyf1gJvU0VjWWrP6Of9Z7yDzW38d3BLHSN5nPLOyxtXhW1zEZyxtFgpOkJebS NNmJvaUUZgkQJCLw8JlNoImOr3viELb5wn/c1jY81i/+jFUwk2G39aSddn+2ov+hHEUH ILJdwFsZ2nsz8vSTMTFgmaqae5uXxY9zRzT7EngHsziiQUSdMziHgzS2GW55aPWOX4SL CtmWCJKcJbvrv7koD98Ogqy3O1Xf4TuaRcHWvgptFWoGeDTbQMRqJP155edTZiBoawNn guG3g9soZwYJ4DvNvLZaEbOeURWg6RDRosEyt1VWrExf4Avrd0Ph4EkMNOsz9lJkWezf jQFQ== 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=nlAJBrBE2gOeL/pHL/++6ehY/SIfIXhi3tsdcdL4xk0=; b=at1qrW4dbeJFmR13ViOF7w+5Rg/A1APXaDxdB4VtqwklPC0dCVvUYjlx2A1EwLzuEv 3pRX2uMM6cICizXZHGVlGf0K12K6lRorxKLjQfvcxa5vfDH8vjy2ynPETnkAUmAZOlFn LWtE/RIXLlvW3j8zcyYKevpwtyn3Vey/Zyc4furoLLWIX6UQerNx3PYh+9m+kl6Lkjmg eJR+dePpGprEqqAMj3vLQE0TDG6dZfhZAWHfmHnvaKdLfQoZrHXL1sEGJFafcznldfYr Nk6A6/RvtLzYn4CFMooG9P9lZXklDWpsyEWQVqWFWhV87vgzEk+ipmn76DER7Cz6duED FZ/A== X-Gm-Message-State: AOAM533ZKf7rU8L+jlHKjgbTKZ5uY5/L8oXyW7GJJsS77kJ2b/ScIuWd 9ELhTHXKY/Ymg+rU6BCUNrMKFX/9pwzc2A== X-Received: by 2002:a63:f955:: with SMTP id q21mr975494pgk.274.1613593353457; Wed, 17 Feb 2021 12:22:33 -0800 (PST) Received: from localhost.localdomain (047-051-160-125.biz.spectrum.com. [47.51.160.125]) by smtp.gmail.com with ESMTPSA id 3sm3001576pjk.26.2021.02.17.12.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 12:22:32 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 16/71] tcg/tci: Merge mov, not and neg operations Date: Wed, 17 Feb 2021 12:19:41 -0800 Message-Id: <20210217202036.1724901-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210217202036.1724901-1-richard.henderson@linaro.org> References: <20210217202036.1724901-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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.c | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tcg/tci.c b/tcg/tci.c index 288a70287e..6a0bdf028b 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -387,7 +387,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); @@ -649,26 +649,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); @@ -798,20 +793,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. */