diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-08-23 16:55:41 +0200 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-08-24 11:22:42 -0700 |
commit | ad262fb56bd8b04a992f20c598286587080eb3c7 (patch) | |
tree | 8082cee5ebaab981dfb47c56c9553afcaadd4ca2 /tcg | |
parent | b8976aa5fe65e335af2eb5243a67d3b7fcd5442e (diff) | |
download | qemu-ad262fb56bd8b04a992f20c598286587080eb3c7.zip qemu-ad262fb56bd8b04a992f20c598286587080eb3c7.tar.gz qemu-ad262fb56bd8b04a992f20c598286587080eb3c7.tar.bz2 |
tcg/tcg-op: Document wswap_i64() byte pattern
Document wswap_i64(), added in commit 46be8425ff
("tcg: Implement tcg_gen_{h,w}swap_{i32,i64}").
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230823145542.79633-8-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg-op.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 5857252..02a8cad 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1950,6 +1950,11 @@ void tcg_gen_hswap_i64(TCGv_i64 ret, TCGv_i64 arg) tcg_temp_free_i64(t1); } +/* + * wswap_i64: Swap 32-bit words within a 64-bit value. + * + * Byte pattern: abcdefgh -> efghabcd + */ void tcg_gen_wswap_i64(TCGv_i64 ret, TCGv_i64 arg) { /* Swapping 2 32-bit elements is a rotate. */ |