docs/devel/tcg-ops: Minor documentation updates
cover docs/devel/tcg-ops: Minor documentation updates
Update TCG opcode list.
Philippe Mathieu-Daudé (3):
docs/devel/tcg-ops: Stop listing dup2_vec() docs/devel/tcg-ops: List more vector opcodes docs/devel/tcg-ops: Slightly expand on discard() opcode
docs/devel/tcg-ops.rst | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)
Signature · 1 line
2.53.0
PATCH 1/3 docs/devel/tcg-ops: Stop listing dup2_vec()
dup2_vec() opcode was removed in commit 6e7b13936d4 ("tcg: Remove INDEX_op_dup2_vec").
--- docs/devel/tcg-ops.rst | 5 ----- 1 file changed, 5 deletions(-)
docs/devel/tcg-ops.rst +0 -5
@@ -769,11 +769,6 @@ specifies the length of the element (if applicable) in log2 8-bit units. - | Similarly, for a constant. | Smaller values will be replicated to host register size by the expanders. - * - dup2_vec *v0*, *r1*, *r2* - - - | Duplicate *r2*:*r1* into TYPE/64 copies across *v0*. This opcode is - only present for 32-bit hosts. - * - add_vec *v0*, *v1*, *v2* - | *v0* = *v1* + *v2*, in elements across the vector.
Signature · 1 line
2.53.0
Re: [PATCH 1/3] docs/devel/tcg-ops: Stop listing dup2_vec()
Quoted 8 lines · Philippe Mathieu-Daudé
dup2_vec()opcode was removed in commit6e7b13936d4("tcg: RemoveINDEX_op_dup2_vec").Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- docs/devel/tcg-ops.rst | 5 ----- 1 file changed, 5 deletions(-)
PATCH 2/3 docs/devel/tcg-ops: List more vector opcodes
In reply to Philippe Mathieu-DaudéFew logical and arithmetic vector opcodes are missing, list them.
--- docs/devel/tcg-ops.rst | 8 ++++++++ 1 file changed, 8 insertions(+)
docs/devel/tcg-ops.rst +8 -0
@@ -816,10 +816,16 @@ specifies the length of the element (if applicable) in log2 8-bit units. * - and_vec *v0*, *v1*, *v2* + nand_vec *v0*, *v1*, *v2* + or_vec *v0*, *v1*, *v2* + nor_vec *v0*, *v1*, *v2* + xor_vec *v0*, *v1*, *v2* + eqv_vec *v0*, *v1*, *v2* + andc_vec *v0*, *v1*, *v2* orc_vec *v0*, *v1*, *v2*
@@ -852,6 +858,8 @@ specifies the length of the element (if applicable) in log2 8-bit units. sars_vec *v0*, *v1*, *s2* + rotls_vec *v0*, *v1*, *s2* + - | Similarly for logical and arithmetic right shift, and left rotate. * - shlv_vec *v0*, *v1*, *v2*
Signature · 1 line
2.53.0
Re: [PATCH 2/3] docs/devel/tcg-ops: List more vector opcodes
Quoted 7 lines · Philippe Mathieu-Daudé
Few logical and arithmetic vector opcodes are missing, list them.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- docs/devel/tcg-ops.rst | 8 ++++++++ 1 file changed, 8 insertions(+)
Re: [PATCH 2/3] docs/devel/tcg-ops: List more vector opcodes
In reply to Philippe Mathieu-DaudéQuoted 29 lines · Philippe Mathieu-Daudé
Few logical and arithmetic vector opcodes are missing, list them.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- docs/devel/tcg-ops.rst | 8 ++++++++ 1 file changed, 8 insertions(+)docs/devel/tcg-ops.rst +6
-0@@ -816,10 +816,16 @@ specifies the length of the element (if applicable) in log2 8-bit units. * - and_vec *v0*, *v1*, *v2* + nand_vec *v0*, *v1*, *v2* + or_vec *v0*, *v1*, *v2* + nor_vec *v0*, *v1*, *v2* + xor_vec *v0*, *v1*, *v2* + eqv_vec *v0*, *v1*, *v2* + andc_vec *v0*, *v1*, *v2* orc_vec *v0*, *v1*, *v2*
docs/devel/tcg-ops.rst specifies the length of the element (if applicable) in log2 8-bit units. · line 865
Quoted 8 lines
docs/devel/tcg-ops.rst +2
-0@@ -852,6 +858,8 @@ specifies the length of the element (if applicable) in log2 8-bit units. sars_vec *v0*, *v1*, *s2* + rotls_vec *v0*, *v1*, *s2* + - | Similarly for logical and arithmetic right shift, and left rotate. * - shlv_vec *v0*, *v1*, *v2*
Longer term it would be nice to just auto-generate these from tcg-op.h and tcg-op-common.h but I guess we would need to see if kdoc can handle grouping of sets of ops rather than having to exhaustively enumerate every bitop with comments.
Anyway:
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
PATCH 3/3 docs/devel/tcg-ops: Slightly expand on discard() opcode
In reply to Philippe Mathieu-DaudéNo need to precise the argument size.
--- docs/devel/tcg-ops.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
docs/devel/tcg-ops.rst +4 -3
@@ -437,10 +437,11 @@ Misc for consistency with the other bswap opcodes. For future compatibility, the flags should be zero. - * - discard_i32/i64 *t0* + * - discard *t0* - - | Indicate that the value of *t0* won't be used later. It is useful to - force dead code elimination. + - | Indicate that the value of *t0* won't be used later. This is used to + force dead code elimination, particularly for condition code + optimizations where TCG might otherwise assume a global is still live. * - deposit *dest*, *t1*, *t2*, *pos*, *len*
Signature · 1 line
2.53.0
Re: [PATCH 3/3] docs/devel/tcg-ops: Slightly expand on discard() opcode
Quoted 7 lines · Philippe Mathieu-Daudé
No need to precise the argument size.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- docs/devel/tcg-ops.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Quoted 10 lines · Philippe Mathieu-Daudé
Update TCG opcode list.
Philippe Mathieu-Daudé (3):
docs/devel/tcg-ops: Stop listingdup2_vec()docs/devel/tcg-ops: List more vector opcodes docs/devel/tcg-ops: Slightly expand ondiscard()opcodedocs/devel/tcg-ops.rst | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)
I will let Richard pull that as part of tcg subsystem except if he prefers me to pull it through docs.
Regards,
Pierrick
Quoted 8 lines · Pierrick Bouvier
Quoted 7 lines · Philippe Mathieu-Daudé
Update TCG opcode list.
Philippe Mathieu-Daudé (3):
docs/devel/tcg-ops: Stop listingdup2_vec()docs/devel/tcg-ops: List more vector opcodes docs/devel/tcg-ops: Slightly expand ondiscard()opcode
Quoted 6 lines
Quoted 3 lines
docs/devel/tcg-ops.rst | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)I will let Richard pull that as part of tcg subsystem except if he prefers me to pull it through docs.
OK.