From patchwork Sun Sep 9 21:04:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 182650 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8C6F02C009F for ; Mon, 10 Sep 2012 07:06:48 +1000 (EST) Received: from localhost ([::1]:47603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAoiM-0006AQ-AY for incoming@patchwork.ozlabs.org; Sun, 09 Sep 2012 17:06:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAoiB-0006A6-EM for qemu-devel@nongnu.org; Sun, 09 Sep 2012 17:06:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAoiA-0005pa-4x for qemu-devel@nongnu.org; Sun, 09 Sep 2012 17:06:35 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:59699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAoi9-0005pQ-U3 for qemu-devel@nongnu.org; Sun, 09 Sep 2012 17:06:34 -0400 Received: by pbbrp12 with SMTP id rp12so291958pbb.4 for ; Sun, 09 Sep 2012 14:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=a3LxLT47Ylw838oUKl5PKXiiYIK+xoEbU/kwxQFjGRs=; b=hGZfFYBl4OQBbz/o7BF0SRHd5hfxcgIINKVVNtCIDZ1nOo51tyPRLsbGL1dPIQ9WMP 7CDPArScdX9os4W9JyLxPSqgN5suyioOEDxJc8NMARhI3yeF0yW/vbBnm1rZFRJMVATb qAFJXEdVgbQ+ytHc+Ea0IG9JVOyb2FeoVWlQJvmlrzDz95TZ4DQJ79g/TOHmJzaXoVd/ au5XzILHdu6AbLIa4G/K7EukqMDrSSvUTo1hEOgjruv9ZOFYX3HSBG1FGNjPrt+8iZa0 ZkpMTrct8W5+qvbTHSl8kuGN57nl9Gt98QWz+t+ih13qRiPXn1PotUVCMgeDqCTwr0xt oNXg== Received: by 10.68.136.40 with SMTP id px8mr2040130pbb.153.1347224793299; Sun, 09 Sep 2012 14:06:33 -0700 (PDT) Received: from anchor.twiddle.home ([173.160.232.49]) by mx.google.com with ESMTPS id tw5sm662053pbc.48.2012.09.09.14.06.32 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Sep 2012 14:06:32 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 9 Sep 2012 14:04:19 -0700 Message-Id: <1347224784-19472-2-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.11.4 In-Reply-To: <1347224784-19472-1-git-send-email-rth@twiddle.net> References: <1347224784-19472-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.45 Cc: Alexander Graf , Aurelien Jarno Subject: [Qemu-devel] [PATCH 001/126] tcg: Add TCGV_IS_UNUSED_* X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson Cc: Aurelien Jarno --- tcg/tcg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcg/tcg.h b/tcg/tcg.h index d710694..a9367fe 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -251,6 +251,9 @@ typedef int TCGv_i64; #define TCGV_UNUSED_I32(x) x = MAKE_TCGV_I32(-1) #define TCGV_UNUSED_I64(x) x = MAKE_TCGV_I64(-1) +#define TCGV_IS_UNUSED_I32(x) (GET_TCGV_I32(x) == -1) +#define TCGV_IS_UNUSED_I64(x) (GET_TCGV_I64(x) == -1) + /* call flags */ /* A pure function only reads its arguments and TCG global variables and cannot raise exceptions. Hence a call to a pure function can be