[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 59/63] target/sh4: Improve swap.b translation
From: |
Richard Henderson |
Subject: |
[PULL 59/63] target/sh4: Improve swap.b translation |
Date: |
Tue, 29 Jun 2021 11:54:51 -0700 |
Remove TCG_BSWAP_IZ and the preceding zero-extension.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/sh4/translate.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 147219759b..4dcfff81f6 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -676,8 +676,7 @@ static void _decode_opc(DisasContext * ctx)
case 0x6008: /* swap.b Rm,Rn */
{
TCGv low = tcg_temp_new();
- tcg_gen_ext16u_i32(low, REG(B7_4));
- tcg_gen_bswap16_i32(low, low, TCG_BSWAP_IZ | TCG_BSWAP_OZ);
+ tcg_gen_bswap16_i32(low, REG(B7_4), 0);
tcg_gen_deposit_i32(REG(B11_8), REG(B7_4), low, 0, 16);
tcg_temp_free(low);
}
--
2.25.1
- [PULL 48/63] tcg/mips: Support bswap flags in tcg_out_bswap16, (continued)
- [PULL 48/63] tcg/mips: Support bswap flags in tcg_out_bswap16, Richard Henderson, 2021/06/29
- [PULL 47/63] tcg/s390: Support bswap flags, Richard Henderson, 2021/06/29
- [PULL 49/63] tcg/mips: Support bswap flags in tcg_out_bswap32, Richard Henderson, 2021/06/29
- [PULL 46/63] tcg/ppc: Use power10 byte-reverse instructions, Richard Henderson, 2021/06/29
- [PULL 52/63] tcg: Add flags argument to tcg_gen_bswap16_*, tcg_gen_bswap32_i64, Richard Henderson, 2021/06/29
- [PULL 51/63] tcg: Handle new bswap flags during optimize, Richard Henderson, 2021/06/29
- [PULL 54/63] tcg: Make use of bswap flags in tcg_gen_qemu_st_*, Richard Henderson, 2021/06/29
- [PULL 50/63] tcg/tci: Support bswap flags, Richard Henderson, 2021/06/29
- [PULL 53/63] tcg: Make use of bswap flags in tcg_gen_qemu_ld_*, Richard Henderson, 2021/06/29
- [PULL 57/63] target/arm: Improve REVSH, Richard Henderson, 2021/06/29
- [PULL 59/63] target/sh4: Improve swap.b translation,
Richard Henderson <=
- [PULL 56/63] target/arm: Improve vector REV, Richard Henderson, 2021/06/29
- [PULL 58/63] target/i386: Improve bswap translation, Richard Henderson, 2021/06/29
- [PULL 62/63] tcg/aarch64: Unset TCG_TARGET_HAS_MEMORY_BSWAP, Richard Henderson, 2021/06/29
- [PULL 60/63] target/mips: Fix gen_mxu_s32ldd_s32lddr, Richard Henderson, 2021/06/29
- [PULL 55/63] target/arm: Improve REV32, Richard Henderson, 2021/06/29
- [PULL 63/63] tcg/riscv: Remove MO_BSWAP handling, Richard Henderson, 2021/06/29
- [PULL 61/63] tcg/arm: Unset TCG_TARGET_HAS_MEMORY_BSWAP, Richard Henderson, 2021/06/29