]> xenbits.xensource.com Git - qemu-xen.git/commit
tcg/mips: Support bswap flags in tcg_out_bswap32
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 13 Jun 2021 19:21:20 +0000 (12:21 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Jun 2021 17:04:57 +0000 (10:04 -0700)
commit1fce6534403c7b8741f8eb6a3528142c86c1bd93
tree0072e45fa8f3373226e581b105d45efcd2f9316f
parent27362b7b2c5a4565c41ac2fb1ff3d4e0b1e6534e
tcg/mips: Support bswap flags in tcg_out_bswap32

Merge tcg_out_bswap32 and tcg_out_bswap32s.
Use the flags in the internal uses for loads and stores.

For mips32r2 bswap32 with zero-extension, standardize on
WSBH+ROTR+DEXT.  This is the same number of insns as the
previous DSBH+DSHD+DSRL but fits in better with the flags check.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/mips/tcg-target.c.inc