[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/6] target/sh4: Use hswap_i32() in SWAP.W opcode
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 4/6] target/sh4: Use hswap_i32() in SWAP.W opcode |
Date: |
Tue, 22 Aug 2023 13:01:27 +0200 |
Commit 46be8425ff ("tcg: Implement tcg_gen_{h,w}swap_{i32,i64}")
introduced the generic hswap_i32(). Use it.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/sh4/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 49c87d7a01..0f96a099b3 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -678,7 +678,7 @@ static void _decode_opc(DisasContext * ctx)
}
return;
case 0x6009: /* swap.w Rm,Rn */
- tcg_gen_rotli_i32(REG(B11_8), REG(B7_4), 16);
+ tcg_gen_hswap_i32(REG(B11_8), REG(B7_4));
return;
case 0x200d: /* xtrct Rm,Rn */
{
--
2.41.0
- Re: [PATCH 2/6] target/cris: Use hswap_i32() in SWAPW opcode, (continued)
[PATCH 5/6] target/mips: Use hswap_i64() in DSHD opcode, Philippe Mathieu-Daudé, 2023/08/22
[PATCH 3/6] target/microblaze: Use hswap_i32() in SWAPH opcode, Philippe Mathieu-Daudé, 2023/08/22
[PATCH 6/6] target/loongarch: Use hswap_i64() in REVH.D opcode, Philippe Mathieu-Daudé, 2023/08/22
[PATCH 1/6] target/arm: Use hswap_i32() in VREV/SMLAD opcodes, Philippe Mathieu-Daudé, 2023/08/22
[PATCH 4/6] target/sh4: Use hswap_i32() in SWAP.W opcode,
Philippe Mathieu-Daudé <=