From patchwork Sat Sep 22 00:18:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 185995 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 C7EEC2C008C for ; Sat, 22 Sep 2012 10:18:48 +1000 (EST) Received: from localhost ([::1]:36397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFDQk-0004aZ-Mv for incoming@patchwork.ozlabs.org; Fri, 21 Sep 2012 20:18:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFDQQ-0004UN-RT for qemu-devel@nongnu.org; Fri, 21 Sep 2012 20:18:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFDQP-00015W-Ok for qemu-devel@nongnu.org; Fri, 21 Sep 2012 20:18:26 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:62643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFDQP-00015R-I2 for qemu-devel@nongnu.org; Fri, 21 Sep 2012 20:18:25 -0400 Received: by padfb10 with SMTP id fb10so598759pad.4 for ; Fri, 21 Sep 2012 17:18:24 -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=eM0UcNxMcSsoRbS4TL7xGAzV/K1e/DJdSM5OfqVc1JA=; b=G+5oBcsR9NeQAPKnT5iNCNSam8Wlp2prVySg3Ax0HhCQCMU5qUy2u5c9hxlwL7YdkM T6Z5mmSA3Pf6qlMKFfkAfkzj3iv7aUIww9f3ARrd/sZaXq6aPVq1YnkteKp3mDWwyLYq hdFheMkWF9FYohvTjktYjZGf1f5oQbSKAMja54uEysY/GCnPCQl3SwPZp1h5FNYk4Xwr tvsfi7ubJlLUyUIbWtf5iUy4gIxxgulk7RJDC1FSo9zCjl0nSuCZhSiphlgbJzgq5V17 AkYgtHEsp3eK4rByAORwgOOuLf8kH2DT7V43L/GO254TC9U2oFuj/NNoYKargmy6i+40 nYaA== Received: by 10.68.83.68 with SMTP id o4mr15580250pby.25.1348273104831; Fri, 21 Sep 2012 17:18:24 -0700 (PDT) Received: from anchor.twiddle.home.com ([173.160.232.49]) by mx.google.com with ESMTPS id j9sm4837761pav.15.2012.09.21.17.18.23 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Sep 2012 17:18:24 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 21 Sep 2012 17:18:09 -0700 Message-Id: <1348273096-1495-2-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.11.4 In-Reply-To: <1348273096-1495-1-git-send-email-rth@twiddle.net> References: <1348273096-1495-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.220.45 Cc: aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 1/8] tcg: Adjust descriptions of *cond opcodes 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 The README file documented the operand ordering of the tcg_gen_* functions. Since we're documenting opcodes here, use the true operand ordering. Signed-off-by: Richard Henderson Cc: malc Reviewed-by: Aurelien Jarno --- tcg/README | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tcg/README b/tcg/README index d03ae05..cd9d9cc 100644 --- a/tcg/README +++ b/tcg/README @@ -141,7 +141,7 @@ Define label 'label' at the current program point. Jump to label. -* brcond_i32/i64 cond, t0, t1, label +* brcond_i32/i64 t0, t1, cond, label Conditional jump if t0 cond t1 is true. cond can be: TCG_COND_EQ @@ -301,13 +301,13 @@ This operation would be equivalent to ********* Conditional moves -* setcond_i32/i64 cond, dest, t1, t2 +* setcond_i32/i64 dest, t1, t2, cond dest = (t1 cond t2) Set DEST to 1 if (T1 cond T2) is true, otherwise set to 0. -* movcond_i32/i64 cond, dest, c1, c2, v1, v2 +* movcond_i32/i64 dest, c1, c2, v1, v2, cond dest = (c1 cond c2 ? v1 : v2) @@ -360,7 +360,7 @@ The following opcodes are internal to TCG. Thus they are to be implemented by 32-bit host code generators, but are not to be emitted by guest translators. They are emitted as needed by inline functions within "tcg-op.h". -* brcond2_i32 cond, t0_low, t0_high, t1_low, t1_high, label +* brcond2_i32 t0_low, t0_high, t1_low, t1_high, cond, label Similar to brcond, except that the 64-bit values T0 and T1 are formed from two 32-bit arguments. @@ -377,7 +377,7 @@ is returned in two 32-bit outputs. Similar to mul, except two 32-bit (unsigned) inputs T1 and T2 yielding the full 64-bit product T0. The later is returned in two 32-bit outputs. -* setcond2_i32 cond, dest, t1_low, t1_high, t2_low, t2_high +* setcond2_i32 dest, t1_low, t1_high, t2_low, t2_high, cond Similar to setcond, except that the 64-bit values T1 and T2 are formed from two 32-bit arguments. The result is a 32-bit value.