tcg/README: fix movcond cond argument position
PATCH 1/1 tcg/README: fix movcond cond argument position
movcond has its cond argument first, not last. Fix that in documentation.
--- tcg/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/README +1 -1
@@ -328,7 +328,7 @@ dest = (t1 cond t2) Set DEST to 1 if (T1 cond T2) is true, otherwise set to 0. -* movcond_i32/i64 dest, c1, c2, v1, v2, cond +* movcond_i32/i64 cond, dest, c1, c2, v1, v2 dest = (c1 cond c2 ? v1 : v2)
Signature · 1 line
1.8.1.4
Quoted 13 lines · Max Filippov
movcond has its cond argument first, not last. Fix that in documentation.
Signed-off-by Max Filippov <[email protected]>--- tcg/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tcg/README +0
-0
tcg/README dest = (t1 cond t2) · line 331
Quoted 5 lines
tcg/README +1
-1@@ -328,7 +328,7 @@ dest = (t1 cond t2) Set DEST to 1 if (T1 cond T2) is true, otherwise set to 0. -* movcond_i32/i64 dest, c1, c2, v1, v2, cond +* movcond_i32/i64 cond, dest, c1, c2, v1, v2
No. The README is supposed to be documenting the *opcode* argument ordering, which really does place cond last.
I agree the situation with the helpers using a different ordering is confusing.
If we were going to change anything to match, it'd have to be the helpers --
the concept of constant opcode arguments coming last is buried quite deep in TCG.
r~
Quoted 10 lines · Richard Henderson
Quoted 2 lines · Max Filippov
movcond has its cond argument first, not last. Fix that in documentation.
No. The README is supposed to be documenting the *opcode* argument ordering, which really does place cond last.
I agree the situation with the helpers using a different ordering is confusing.
If we were going to change anything to match, it'd have to be the helpers --
the concept of constant opcode arguments coming last is buried quite deep in TCG.
Maybe put a note about that difference there? Seems like I hit it every time I add
something to translate.c.
Signature · 2 lines
Thanks. -- Max