From nobody Tue Feb 10 03:02:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1505233793449816.8213184457832; Tue, 12 Sep 2017 09:29:53 -0700 (PDT) Received: from localhost ([::1]:36899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dro4O-00060r-CA for importer@patchew.org; Tue, 12 Sep 2017 12:29:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dro0F-0001rP-Vx for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dro0F-00079m-1m for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:35 -0400 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:33036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dro0E-000799-T2 for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:34 -0400 Received: by mail-pf0-x232.google.com with SMTP id y29so18669343pff.0 for ; Tue, 12 Sep 2017 09:25:34 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-103-167.tukw.qwest.net. [97.126.103.167]) by smtp.gmail.com with ESMTPSA id b22sm20382140pfh.175.2017.09.12.09.25.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Sep 2017 09:25:32 -0700 (PDT) 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; bh=2i4Yk9cGgKckIm9fq+cO0kF6plBP6DrJuRPBvKinFLE=; b=LHqySiQ0sJKK0DTx/bds0OwGsaQLXgOEzhWKccokerFphWoXqZiKR2aZuWsC7Ny9V8 rdTYcwMbJjf3Y25R3WGTO1AgqbanW3zeSx6xAdv/zJcys3DF+b20ucMBiq2gS4S3a+Iw cOynlESMLLs2c+yGMY4tnr9nZMvl19FosA6IE= 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; bh=2i4Yk9cGgKckIm9fq+cO0kF6plBP6DrJuRPBvKinFLE=; b=AHoRI+UEOgLGLiaEkcafJwSmiKVEdFZ9NTGYezZccOuh+p1AusfFojF5jZRwGsR1zK bQ55He12neGJrVd59Ts7mRy6ja0s/g2LHCE9sbO8F8KTYBvTRT+y+JIewJLvzHkqJHna gwL0jSqFMd8k6yPMPeS24FZhI2xH5rn/G75/RXtHaI02fAIlvEuWYgXOwIKcml3sPee2 1QbDGE9B5ZIcF+fLqc75PgOrKv7PmEoGWw+KGSJrctRCNg3YWVwu+J8lR05ZnemWkkPy aozR0prAb2cQ+HPoCwqutvVHKolAg5wKlVZkD75rbOG+jAY7Sdf84xUEcgmgjBm8tf3j Cs1A== X-Gm-Message-State: AHPjjUgAFon685otul/WppXHrEXiT1WWWAtY6t38jUZDKcFuNo1AhpPv phio7xBfG9Qz5G8oXvFkbQ== X-Google-Smtp-Source: ADKCNb5N2eWtP9wpSei12ANcgt6sxvVEu5QOsYGM2KTfROZAR+QznMPp+JUVnKIkLCWXiS4fGpBKLw== X-Received: by 10.99.122.91 with SMTP id j27mr14796612pgn.2.1505233533745; Tue, 12 Sep 2017 09:25:33 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Sep 2017 09:25:10 -0700 Message-Id: <20170912162513.21694-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170912162513.21694-1-richard.henderson@linaro.org> References: <20170912162513.21694-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::232 Subject: [Qemu-devel] [PATCH v2 13/16] tcg: Remove tcg_regset_{or, and, andnot, not} X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tcg/tcg.h | 4 ---- tcg/tcg.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tcg/tcg.h b/tcg/tcg.h index e168bd2c44..8b4208ea03 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -214,10 +214,6 @@ typedef enum TCGOpcode { #define tcg_regset_set_reg(d, r) (d) |=3D 1L << (r) #define tcg_regset_reset_reg(d, r) (d) &=3D ~(1L << (r)) #define tcg_regset_test_reg(d, r) (((d) >> (r)) & 1) -#define tcg_regset_or(d, a, b) (d) =3D (a) | (b) -#define tcg_regset_and(d, a, b) (d) =3D (a) & (b) -#define tcg_regset_andnot(d, a, b) (d) =3D (a) & ~(b) -#define tcg_regset_not(d, a) (d) =3D ~(a) =20 #ifndef TCG_TARGET_INSN_UNIT_SIZE # error "Missing TCG_TARGET_INSN_UNIT_SIZE" diff --git a/tcg/tcg.c b/tcg/tcg.c index 873915925f..a19767b5ef 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2306,7 +2306,7 @@ static TCGReg tcg_reg_alloc(TCGContext *s, TCGRegSet = desired_regs, TCGReg reg; TCGRegSet reg_ct; =20 - tcg_regset_andnot(reg_ct, desired_regs, allocated_regs); + reg_ct =3D desired_regs & ~allocated_regs; order =3D rev ? indirect_reg_alloc_order : tcg_target_reg_alloc_order; =20 /* first try free registers */ --=20 2.13.5