From patchwork Sat Mar 6 21:36:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 394567 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp552417jai; Sat, 6 Mar 2021 13:45:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUrG2/IkBuqiKTqLhmHJ3sHa4oVa3RZYpDpVCrDTZN20O3ueXGy0j0RErS7S6FqWEfWTGf X-Received: by 2002:a25:80c7:: with SMTP id c7mr22874957ybm.406.1615067114877; Sat, 06 Mar 2021 13:45:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615067114; cv=none; d=google.com; s=arc-20160816; b=n+bkCMJklNVf35lFnTIS+m6ZoSkI/Xi+QEjxn7/omAKanswq33S1wce5dfoOeHWc8x bn4guH2+l1dihxKFsUFEHpAFCme1++QM4XwpPQYMkMyvK7hN0ADb4QuIwWIrP8ZPQZWl CZ52KLpQT3/4sZRusBdZKckg4CyNH4BOiRGD89xovprPpMNK1Uv9eskOZt2lhrqtatpq piBcejdUU5IHR8xOHQuP3+us1jOunbAoTyJjFhpy5iC47Rn5qxrOP5MnpApOQGcZY8Cw 8GjqF/Jkw3jqn/rDq2+LJz82tP351aFat64YTqALTov+8EqdpULjPUno93a479DD7z2r 6z1Q== 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=Fjh8f4OqF602Y2BfCtcg6Y74/rLBbqgNaPqxsRG9w20=; b=DCiwCsjgCKIQSmW5+bTcL/KL6OHs+3nCIu/OLTjL88OHEenuYWsnAdcbwybYYLu/1u tnxpwOOGQaT2VENVmEeOtA/lojUH4nDTSSIqHscCcKGAIpnPr3gKKUaDGQ1Sy0yGbYqj Tb3d2ZsEDkcmVvYiF0ekb2HsADVxDsXk82UgUG3ld3GD+sNnabw1lLZFkMWwmdSxYQqo x33KHoTebSqoNFxNvRrjoxbBQSDqTVkZ90Y3SOFKIROtt579E7bStnTsgmPKDTeaqTLx 5VeAY8Vuyoj8cThkjwIQxApqGmYr9y/hEjcLICTL21eKmAnVtWRhvKpBjDm3sM6ajxz2 faKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BNhoV6YP; 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 r6si6732689ybl.176.2021.03.06.13.45.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 06 Mar 2021 13:45:14 -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=BNhoV6YP; 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]:52630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIeja-0003tK-9t for patch@linaro.org; Sat, 06 Mar 2021 16:45:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIebJ-0007EO-5h for qemu-devel@nongnu.org; Sat, 06 Mar 2021 16:36:41 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:46282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIebH-0002zN-Bh for qemu-devel@nongnu.org; Sat, 06 Mar 2021 16:36:40 -0500 Received: by mail-pf1-x432.google.com with SMTP id r5so4508030pfh.13 for ; Sat, 06 Mar 2021 13:36:38 -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=Fjh8f4OqF602Y2BfCtcg6Y74/rLBbqgNaPqxsRG9w20=; b=BNhoV6YP+vahyZszutEJDw1mIBbKdYsJc5L9YzyKhQEh+UvXm0qtJGdsMEDy3ORWpx //22kqc29QbR5D7PGwu36M8Xmn6Rm9DdJOwqANFHtsc6z8VcFeNk2ngd9curx58SVGmA qqas9DlDahmf1EG2bW3G4adQWgkLO14OXHKPmChAyCz9fYHhRXkFkKnONNQuWFt4aI+c qUFQlKxOSBIuyYiiaSR8kLDqYBcTyYLTxby1P5UP0s+pAFUiNFVS0Bi37uiHTsrVr88c 2LSM/kJ6M+viykza2yPeskNYL8vScdsZx21vdeK0OPGFGbAia/9DLfLRtdG7enhE4K8Y u9gg== 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=Fjh8f4OqF602Y2BfCtcg6Y74/rLBbqgNaPqxsRG9w20=; b=uZJ2ETYeORGzjq01g0hsWZImqfPTQaOZWUUeXg2yENv6Triq8qeQOHB4nPsIOiq1XZ OHntG6EdONovMd7nESQITDv+JLtjNa/GCErqm+Lhp3hLGdgMoMGALwK01rPoOgNxC9EX su8AHKqin+HKDHT2oFpXZLTx2QvH3Q5sHMN6kri/48J5BoQk/f9bk+2vj+C2CqD2BqI5 IzdTqM0nFIN9R9miHSf0VXPXlswnRKVvGN+Qtb/WPIfjkSYQ5XoU2shUo67O3MD74Fcq oxgUd5l2eqFZ2SVdIsSKfA+V9Jfw5XiRdAW+2UN5JgQbq3uvYPlagxQJi5B4J33qn5Zy Qtcw== X-Gm-Message-State: AOAM5323FNWSM7hayMeJR14gp400kSFQHD5d4gv9zwmkE8TLyc+LMJ9Z 4EMy0BnLiS8jKOg+6gwgq0FEd5bn/qriTw== X-Received: by 2002:aa7:8292:0:b029:1ed:d6e5:1333 with SMTP id s18-20020aa782920000b02901edd6e51333mr14799911pfm.55.1615066597957; Sat, 06 Mar 2021 13:36:37 -0800 (PST) Received: from localhost.localdomain ([71.212.131.83]) by smtp.gmail.com with ESMTPSA id r30sm6365616pgu.86.2021.03.06.13.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Mar 2021 13:36:37 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 22/27] tcg/tci: Merge mov, not and neg operations Date: Sat, 6 Mar 2021 13:36:08 -0800 Message-Id: <20210306213613.85168-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210306213613.85168-1-richard.henderson@linaro.org> References: <20210306213613.85168-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.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: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Philippe Mathieu-Daudé 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 66f2962d6e..3ccd30c39c 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); @@ -802,20 +797,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. */