|
|
5544c1 |
From a2c90b264762d3ddcc9a830653315a6fe9107055 Mon Sep 17 00:00:00 2001
|
|
|
5544c1 |
From: Richard Henderson <rth@twiddle.net>
|
|
|
5544c1 |
Date: Fri, 21 Sep 2012 17:18:09 -0700
|
|
|
5544c1 |
Subject: [PATCH] tcg: Adjust descriptions of *cond opcodes
|
|
|
5544c1 |
|
|
|
5544c1 |
The README file documented the operand ordering of the tcg_gen_*
|
|
|
5544c1 |
functions. Since we're documenting opcodes here, use the true
|
|
|
5544c1 |
operand ordering.
|
|
|
5544c1 |
|
|
|
5544c1 |
Signed-off-by: Richard Henderson <rth@twiddle.net>
|
|
|
5544c1 |
Cc: malc <av1474@comtv.ru>
|
|
|
5544c1 |
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
|
|
|
5544c1 |
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
|
|
5544c1 |
---
|
|
|
5544c1 |
tcg/README | 10 +++++-----
|
|
|
5544c1 |
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
5544c1 |
|
|
|
5544c1 |
diff --git a/tcg/README b/tcg/README
|
|
|
5544c1 |
index 33783ee..27846f1 100644
|
|
|
5544c1 |
--- a/tcg/README
|
|
|
5544c1 |
+++ b/tcg/README
|
|
|
5544c1 |
@@ -141,7 +141,7 @@ Define label 'label' at the current program point.
|
|
|
5544c1 |
|
|
|
5544c1 |
Jump to label.
|
|
|
5544c1 |
|
|
|
5544c1 |
-* brcond_i32/i64 cond, t0, t1, label
|
|
|
5544c1 |
+* brcond_i32/i64 t0, t1, cond, label
|
|
|
5544c1 |
|
|
|
5544c1 |
Conditional jump if t0 cond t1 is true. cond can be:
|
|
|
5544c1 |
TCG_COND_EQ
|
|
|
5544c1 |
@@ -301,13 +301,13 @@ This operation would be equivalent to
|
|
|
5544c1 |
|
|
|
5544c1 |
********* Conditional moves
|
|
|
5544c1 |
|
|
|
5544c1 |
-* setcond_i32/i64 cond, dest, t1, t2
|
|
|
5544c1 |
+* setcond_i32/i64 dest, t1, t2, cond
|
|
|
5544c1 |
|
|
|
5544c1 |
dest = (t1 cond t2)
|
|
|
5544c1 |
|
|
|
5544c1 |
Set DEST to 1 if (T1 cond T2) is true, otherwise set to 0.
|
|
|
5544c1 |
|
|
|
5544c1 |
-* movcond_i32/i64 cond, dest, c1, c2, v1, v2
|
|
|
5544c1 |
+* movcond_i32/i64 dest, c1, c2, v1, v2, cond
|
|
|
5544c1 |
|
|
|
5544c1 |
dest = (c1 cond c2 ? v1 : v2)
|
|
|
5544c1 |
|
|
|
5544c1 |
@@ -360,7 +360,7 @@ The following opcodes are internal to TCG. Thus they are to be implemented by
|
|
|
5544c1 |
32-bit host code generators, but are not to be emitted by guest translators.
|
|
|
5544c1 |
They are emitted as needed by inline functions within "tcg-op.h".
|
|
|
5544c1 |
|
|
|
5544c1 |
-* brcond2_i32 cond, t0_low, t0_high, t1_low, t1_high, label
|
|
|
5544c1 |
+* brcond2_i32 t0_low, t0_high, t1_low, t1_high, cond, label
|
|
|
5544c1 |
|
|
|
5544c1 |
Similar to brcond, except that the 64-bit values T0 and T1
|
|
|
5544c1 |
are formed from two 32-bit arguments.
|
|
|
5544c1 |
@@ -377,7 +377,7 @@ is returned in two 32-bit outputs.
|
|
|
5544c1 |
Similar to mul, except two 32-bit (unsigned) inputs T1 and T2 yielding
|
|
|
5544c1 |
the full 64-bit product T0. The later is returned in two 32-bit outputs.
|
|
|
5544c1 |
|
|
|
5544c1 |
-* setcond2_i32 cond, dest, t1_low, t1_high, t2_low, t2_high
|
|
|
5544c1 |
+* setcond2_i32 dest, t1_low, t1_high, t2_low, t2_high, cond
|
|
|
5544c1 |
|
|
|
5544c1 |
Similar to setcond, except that the 64-bit values T1 and T2 are
|
|
|
5544c1 |
formed from two 32-bit arguments. The result is a 32-bit value.
|
|
|
5544c1 |
--
|
|
|
5544c1 |
1.7.12.1
|
|
|
5544c1 |
|