[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/8] target/cris: optimize gen_swapb() using extract
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH 4/8] target/cris: optimize gen_swapb() using extract op |
Date: |
Wed, 10 May 2017 17:05:31 -0300 |
Applied using Coccinelle script.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
target/cris/translate.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/target/cris/translate.c b/target/cris/translate.c
index 0ee05ca02d..c03403ac62 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -442,8 +442,7 @@ static inline void t_gen_swapb(TCGv d, TCGv s)
tcg_gen_mov_tl(org_s, s);
tcg_gen_shli_tl(t, org_s, 8);
tcg_gen_andi_tl(d, t, 0xff00ff00);
- tcg_gen_shri_tl(t, org_s, 8);
- tcg_gen_andi_tl(t, t, 0x00ff00ff);
+ tcg_gen_extract_tl(t, org_s, 8, 0x00ff00ff);
tcg_gen_or_tl(d, d, t);
tcg_temp_free(t);
tcg_temp_free(org_s);
--
2.11.0
- Re: [Qemu-devel] [RFC PATCH v2] coccinelle: add a script to optimize tcg op using tcg_gen_extract(), (continued)
[Qemu-devel] [PATCH 2/8] target/arm: optimize smul_dual() and neon_trn_u8() using extract op, Philippe Mathieu-Daudé, 2017/05/10
[Qemu-devel] [PATCH 3/8] target/arm: optimize rev16() using extract op, Philippe Mathieu-Daudé, 2017/05/10
[Qemu-devel] [PATCH 4/8] target/cris: optimize gen_swapb() using extract op,
Philippe Mathieu-Daudé <=
[Qemu-devel] [PATCH 5/8] target/m68k: optimize bcd_flags() using extract op, Philippe Mathieu-Daudé, 2017/05/10
[Qemu-devel] [PATCH 6/8] target/mips: optimize bshfl() using extract op, Philippe Mathieu-Daudé, 2017/05/10
[Qemu-devel] [PATCH 7/8] target/ppc: optimize various functions using extract op, Philippe Mathieu-Daudé, 2017/05/10