Message ID | 20171229193113.11753-7-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 923ed1750186591b04d7d61399f6d68b4e0608f2 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5060143qgn; Fri, 29 Dec 2017 11:39:31 -0800 (PST) X-Google-Smtp-Source: ACJfBotbG6Kulo8JlbczcGJTkbR7u3HzzyZvi6bWnPjXI5/o55mxAJRuZ4xfjGfwkIDGMZXv+DJ5 X-Received: by 10.37.128.197 with SMTP id c5mr19607799ybm.188.1514576371548; Fri, 29 Dec 2017 11:39:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514576371; cv=none; d=google.com; s=arc-20160816; b=TnbBSItDqsuk9Uc4G35UMkJhzEx5/MM8N8Dietcul8t0qzWrCfWM5xgn6jGjKkNQDo kL9aTjiALx024JpAJHpXjapECbWxOxCxfSDSTRf7Aw2HiSELmfdBB6+OOJooGp+KADST 9Ztv/O4mD6EyYl37OaX0o3ihiM0p9fNhsKGFui+/ZG7EAtAjAk7jZ2BPf2dIRwBqtKk3 o2ZCVVL8bkrp/pVX6ZV5Cum1jnfszlbQ7yBQ1daCuS2fQnw+2zKdnHSt0YpkG33/OiZ0 OwwFJwOGZrcMf3r/1yXJ6ObkQ7WxNQGfuAu2oC7i59lxmIFJdH41IqNw9/X//ak8XwbU NdiA== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=/YlH32H9tYHZq9RETQ643K/J2do610JFBVn7ZN+NgVA=; b=EDks/IgTqkSf4ZP8ExOfRBL9vFJWpUX5pUAu4YjMOmp37TRCNt8ToKXWe5bgcrxFNQ CZLH0lpeXKrIuUa09CNkVwHBBKXfJrPtDIv8JPLbr9cjXm6aKiXmbR4IxEZ7gHZ2fB/8 JsP90P5xBA9jQcqCS++z7QwPdddDQxMGMB6rwELLwALhu1ZEQitq6F42kJ5op/1FLja5 0LP0R1hUw7/YEmisMjzFe1uGnKqt8/TI4L1QNu6p3BIEHNFx/U9DwaeV3drFcQbaNuT4 +lOHjW7CxGyChS1JO2+n0FBjIGwXFadshoMEknQD0VtmsiSn+JyzwT9/qNAsaaWgfsXX gI+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=g/FGsD/0; 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 o2si4015239ybj.211.2017.12.29.11.39.31 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 29 Dec 2017 11:39:31 -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=g/FGsD/0; 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]:52152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1eV0V9-0006aI-5R for patch@linaro.org; Fri, 29 Dec 2017 14:39:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eV0NK-0000lx-Jk for qemu-devel@nongnu.org; Fri, 29 Dec 2017 14:31:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eV0NJ-0000K8-RS for qemu-devel@nongnu.org; Fri, 29 Dec 2017 14:31:26 -0500 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:36900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eV0NJ-0000Iq-MF for qemu-devel@nongnu.org; Fri, 29 Dec 2017 14:31:25 -0500 Received: by mail-pf0-x241.google.com with SMTP id n6so22426727pfa.4 for <qemu-devel@nongnu.org>; Fri, 29 Dec 2017 11:31:25 -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; bh=/YlH32H9tYHZq9RETQ643K/J2do610JFBVn7ZN+NgVA=; b=g/FGsD/0DlNjutQ9c3H4mm84STiSazkRUmePuhc5xlgci+9oCxj17wum88VxOHx8Iy u4oaC9x8rdxZMFDyFFV5C1lFZakREtwzo3fuaOGkDqEvWvl5gBNCSaTHDannT3s79dO7 T+8JHrjJeq3lWP0elBCgeP1b3hlFc2XwkVuZ0= 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=/YlH32H9tYHZq9RETQ643K/J2do610JFBVn7ZN+NgVA=; b=Y0eBDJF9KmkiK9H+ukvgRZSJ4kEb/YZJDETAPOBVUkTRSnmuK8mKFsiT+ZYqztUeug 78MBUbtx+99TbOAH+WXrYmx3hpdrJq6QC6cayh/8GvF+EGssBV5MQp09V9FEV62tM4ry nJ3EragWGyZfvkOgUUpBiwbRzg34RznjNHEYoLhLMkI6qgAzgy7K8ch0+rPjJ6uX3QYx 7sbhFrF2LIZMiNfrGgKKx4CV9YkyKwp2JieOiooWm8X9pEGKrEs6aeMEu/0t19eFcSIG CRtclgvvRh/E7dc3hS97LUqP2HP1ar/BVqrByta69G2tWnLFv/6+Cf+WE2x0brQzcHYj X7ow== X-Gm-Message-State: AKGB3mLa4nVJgBEtAsBeoQ1UTyWggqYPMmlR0WlyVDVoN/oY6bJZqMBG PuEZxGuS8qWrYtSnjLwiQXSn0fYhrVc= X-Received: by 10.99.167.14 with SMTP id d14mr5349909pgf.257.1514575884536; Fri, 29 Dec 2017 11:31:24 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-183-164.tukw.qwest.net. [97.113.183.164]) by smtp.gmail.com with ESMTPSA id q68sm71240492pfb.1.2017.12.29.11.31.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Dec 2017 11:31:23 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Fri, 29 Dec 2017 11:31:11 -0800 Message-Id: <20171229193113.11753-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171229193113.11753-1-richard.henderson@linaro.org> References: <20171229193113.11753-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::241 Subject: [Qemu-devel] [PULL 6/8] 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> Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg queued patches
|
expand
|
diff --git a/tcg/tcg.h b/tcg/tcg.h index f25efa9795..8c45f7edbc 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -488,6 +488,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.14.3