Re: [PATCH 1/7] tcg/tcg-op: Document bswap16() byte pattern

2023-08-22 Thread Philippe Mathieu-Daudé
On 22/8/23 19:29, Richard Henderson wrote: On 8/22/23 10:22, Philippe Mathieu-Daudé wrote: } else { tcg_gen_shli_i32(t1, arg, 8);   /*  t1 = xab. (IZ=0) */ /*   .ab. (IZ=1) */ } tcg_gen_or_i32(ret, t0, t1);

Re: [PATCH 1/7] tcg/tcg-op: Document bswap16() byte pattern

2023-08-22 Thread Richard Henderson
On 8/22/23 10:22, Philippe Mathieu-Daudé wrote:     } else {     tcg_gen_shli_i32(t1, arg, 8);   /*  t1 = xab. (IZ=0) */     /*   .ab. (IZ=1) */     }     tcg_gen_or_i32(ret, t0, t1);    /* ret = ..ba (IZ=1 or OZ=1) */    

Re: [PATCH 1/7] tcg/tcg-op: Document bswap16() byte pattern

2023-08-22 Thread Philippe Mathieu-Daudé
On 22/8/23 17:58, Richard Henderson wrote: On 8/22/23 02:37, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé ---   tcg/tcg-op.c | 48   1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c

Re: [PATCH 1/7] tcg/tcg-op: Document bswap16() byte pattern

2023-08-22 Thread Richard Henderson
On 8/22/23 02:37, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- tcg/tcg-op.c | 48 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 7aadb37756..f164ddc95e 100644 --- a/t

[PATCH 1/7] tcg/tcg-op: Document bswap16() byte pattern

2023-08-22 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- tcg/tcg-op.c | 48 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 7aadb37756..f164ddc95e 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1021,6 +1021,13 @