qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/7] tcg/tcg-op: Document hswap() byte pattern


From: Richard Henderson
Subject: Re: [PATCH 4/7] tcg/tcg-op: Document hswap() byte pattern
Date: Tue, 22 Aug 2023 09:04:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 8/22/23 02:37, Philippe Mathieu-Daudé wrote:
Document hswap_i32() and hswap_i64(), added in commit
46be8425ff ("tcg: Implement tcg_gen_{h,w}swap_{i32,i64}").

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  docs/devel/tcg-ops.rst |  4 ++++
  tcg/tcg-op.c           | 26 +++++++++++++++++++-------
  2 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/docs/devel/tcg-ops.rst b/docs/devel/tcg-ops.rst
index 6a166c5665..d9364effd2 100644
--- a/docs/devel/tcg-ops.rst
+++ b/docs/devel/tcg-ops.rst
@@ -486,6 +486,10 @@ Misc
           into 32-bit output *t0*.  Depending on the host, this may be a 
simple shift,
           or may require additional canonicalization.
+ * - hswap_i32/i64 *t0*, *t1*
+
+     - | Swap 16-bit halfwords within a 32/64-bit value.

hswap is not a tcg opcode, so this is incorrect.

This falls into the part of TCG that Peter has mentioned many times: we have opcode documentation, but no separate translator front end documentation.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]