tcg/ppc: Split out tcg_out_bswap16
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 13 Jun 2021 16:16:25 +0000 (16:16 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Jun 2021 17:04:57 +0000 (10:04 -0700)
commit783d3ecdda97f0f332afa9de1cfa6fac100db31c
treea13a76810b7362434ba030295576bd145a384f85
parent05dd01fa5ade816899dcf104e71ecf8a90577301
tcg/ppc: Split out tcg_out_bswap16

With the use of a suitable temporary, we can use the same
algorithm when src overlaps dst.  The result is the same
number of instructions either way.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/ppc/tcg-target.c.inc