Re: [Qemu-devel] [PATCH v3 17/27] tcg-ppc64: Implement bswap64

2013-04-02 Thread Richard Henderson
On 2013-04-02 07:41, Alexander Graf wrote: On 2013-04-01 23:34, Alexander Graf wrote: Is this faster than a load/store with std/ldbrx? Hmm. Almost certainly not. And since we've got stack space allocated for function calls, we've got scratch space to do it in. Probably similar for bswap32 t

Re: [Qemu-devel] [PATCH v3 17/27] tcg-ppc64: Implement bswap64

2013-04-02 Thread Alexander Graf
On 04/02/2013 05:12 PM, Richard Henderson wrote: On 2013-04-02 07:41, Alexander Graf wrote: On 2013-04-01 23:34, Alexander Graf wrote: Is this faster than a load/store with std/ldbrx? Hmm. Almost certainly not. And since we've got stack space allocated for function calls, we've got scratch

Re: [Qemu-devel] [PATCH v3 17/27] tcg-ppc64: Implement bswap64

2013-04-02 Thread Alexander Graf
Am 02.04.2013 um 15:44 schrieb Richard Henderson : > On 2013-04-01 23:34, Alexander Graf wrote: >> Is this faster than a load/store with std/ldbrx? > > Hmm. Almost certainly not. And since we've got stack space > allocated for function calls, we've got scratch space to do it in. > > Probably

Re: [Qemu-devel] [PATCH v3 17/27] tcg-ppc64: Implement bswap64

2013-04-02 Thread Richard Henderson
On 2013-04-01 23:34, Alexander Graf wrote: Is this faster than a load/store with std/ldbrx? Hmm. Almost certainly not. And since we've got stack space allocated for function calls, we've got scratch space to do it in. Probably similar for bswap32 too, eh? I'll do a tiny bit o benchmarking f

Re: [Qemu-devel] [PATCH v3 17/27] tcg-ppc64: Implement bswap64

2013-04-01 Thread Alexander Graf
On 02.04.2013, at 06:23, Richard Henderson wrote: > Reviewed-by: Aurelien Jarno > Signed-off-by: Richard Henderson Is this faster than a load/store with std/ldbrx? Alex > --- > tcg/ppc64/tcg-target.c | 35 +++ > tcg/ppc64/tcg-target.h | 2 +- > 2 files changed

[Qemu-devel] [PATCH v3 17/27] tcg-ppc64: Implement bswap64

2013-04-01 Thread Richard Henderson
Reviewed-by: Aurelien Jarno Signed-off-by: Richard Henderson --- tcg/ppc64/tcg-target.c | 35 +++ tcg/ppc64/tcg-target.h | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index d8131ec..1806364