Message ID | 20171121212534.5177-8-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5811067qgn; Tue, 21 Nov 2017 13:28:15 -0800 (PST) X-Google-Smtp-Source: AGs4zMYQXms62scwKd7xnToapsySywoYBLKWD7uD+0p2Na/qcq2ACM9sp+NTap3waLDQf+Wy+Lo5 X-Received: by 10.129.152.143 with SMTP id p137mr11544719ywg.165.1511299695664; Tue, 21 Nov 2017 13:28:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511299695; cv=none; d=google.com; s=arc-20160816; b=E4bG9fBrYt68X4tDYP0Df/rH1LAo05wAlxdZPQagdcdWi0xhCfBOrj/PWlyglZqY65 sqevS7EPxC3L9IcstWfcPbBor+YfvmFyNlDCENNXcAFxyIwqWCQ36kvP8Un9wIrBV+7x Ytc6idVYdlMwK81FbAblPGXhasxgPx87KlRXdrADNsyR3D61x4rgEXMLp1ZssJ3enTAN 8OaAV1KNr5XImYzsbDPGBzr7pAyRO/0/nDkwD44GORIlgq7Te2o3u4jXhtRRBvfMV4ou f7rDUFZW5S2EWb0IHQs7O5g0M/vdQHwRU5w2vwSVv/gU21kEUk2JCyAfKHbNv/pMwLxJ zqiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=DQqqwXi6krqrAR+MFMh6WBa/XGoGSPQ/T7AOKHY6UYY=; b=htn39LQk9bku5p5+Z2G8KATZuw7FVdwc1GxUiCx3QOsPT5fvIU2pCGKfC18Zmfrlz7 YgbaYRT1yVczp3iWhFA7ay6FfoMTFAu+Rwus7D+aEALygcSZ5E+kV14jLmD2gvMTEVar 5ipUjoKS6CT5IL6qGlC53X/WSigyA63262K0Shyxapy53mIodqKFH05bepaCSC1bvNmL NCz07wR0aD3qqbg4UMxoWNMuTixUOsJg6/n68QSBDgDSbfhZ7vvkaWvdWs8qjcNvPTvr VuqgNT3TnCIXrV1+PloaoF3tOf5zy28kgqdRkf5AoRs5RrbFNMcadw3AsOyd9JH0b+T+ i3Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=au4rpKIh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 204si2222882ywf.423.2017.11.21.13.28.15 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 21 Nov 2017 13:28:15 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=au4rpKIh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:36577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1eHG5X-0004O1-5M for patch@linaro.org; Tue, 21 Nov 2017 16:28:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eHG55-0004Jl-Hb for qemu-devel@nongnu.org; Tue, 21 Nov 2017 16:27:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eHG54-0007g6-OL for qemu-devel@nongnu.org; Tue, 21 Nov 2017 16:27:47 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:44105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eHG54-0007fj-HT for qemu-devel@nongnu.org; Tue, 21 Nov 2017 16:27:46 -0500 Received: by mail-wm0-x244.google.com with SMTP id r68so6352420wmr.3 for <qemu-devel@nongnu.org>; Tue, 21 Nov 2017 13:27:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=DQqqwXi6krqrAR+MFMh6WBa/XGoGSPQ/T7AOKHY6UYY=; b=au4rpKIhTmnfMFTh1kVaInfvALY5+GYq5qwvdOAuJE+zefJbNUvvlRUr9Us1YCARr5 G3y5q2+SOlpZ1JjEUE/lw7Xz1LNEJi2NKJ+VJION/sdFPf23fMDg0A3KaSTAeNNMKZZ4 P5ctxbBbSu40wryqBr4expE4FueKPh40ATMqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=DQqqwXi6krqrAR+MFMh6WBa/XGoGSPQ/T7AOKHY6UYY=; b=ngDl9ppCBWD0Xim+FRrVq7sB9tIPVtwIle89LqcnU9MGUUM/fzP94OfXDQ4vWBBahf oGOY97LaLLJHtg1JmLdq7doP4JJRBWdlGXc4zxVJNqSBBLdXZRWNDvYXv/5M5cDTl9Ma FZ+TRwHSonqJA2UG8X5T2fpuPvoAwL5qfZnc+KZSuzIU1rehcpm7WXYYZ3Xbrx3m4ibW U18kEBxfDU0huRi1SClbDgI5jzfFEcrNnlIu5bOHiXpdYmMphjq9lfbzveCIIK0UAvKm fBOgBu9gXH/aM3/8nbIV66a+qC2v9jSC4se479fpHbgZEE7BglbbQI54cQfSBnZMsiZm PIRw== X-Gm-Message-State: AJaThX4k8jAvTG0ug0VpmCeKOosOFJdXNyA+XktR9RbhfBlw87BJicne sY2Nw1gQwQh34DkMNPwF0siajc4EoLc= X-Received: by 10.28.33.136 with SMTP id h130mr2255539wmh.151.1511299665417; Tue, 21 Nov 2017 13:27:45 -0800 (PST) Received: from cloudburst.twiddle.net (70.red-37-158-60.dynamicip.rima-tde.net. [37.158.60.70]) by smtp.gmail.com with ESMTPSA id e124sm706517wmg.34.2017.11.21.13.27.44 for <qemu-devel@nongnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Nov 2017 13:27:44 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Tue, 21 Nov 2017 22:25:15 +0100 Message-Id: <20171121212534.5177-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171121212534.5177-1-richard.henderson@linaro.org> References: <20171121212534.5177-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v6 07/26] tcg: Add tcg_signed_cond X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg: generic vector operations
|
expand
|
diff --git a/tcg/tcg.h b/tcg/tcg.h index 2acebd387a..49d4c5fe05 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -517,6 +517,12 @@ static inline TCGCond tcg_unsigned_cond(TCGCond c) return c & 2 ? (TCGCond)(c ^ 6) : c; } +/* Create a "signed" version of an "unsigned" comparison. */ +static inline TCGCond tcg_signed_cond(TCGCond c) +{ + return c & 4 ? (TCGCond)(c ^ 6) : c; +} + /* Must a comparison be considered unsigned? */ static inline bool is_unsigned_cond(TCGCond c) {
Complimenting the existing tcg_unsigned_cond. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tcg.h | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.13.6