qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/avr: Optimize various functions using extract opcode


From: Richard Henderson
Subject: Re: [PATCH] target/avr: Optimize various functions using extract opcode
Date: Sun, 3 Oct 2021 11:24:31 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 10/3/21 10:21 AM, Philippe Mathieu-Daudé wrote:
When running the scripts/coccinelle/tcg_gen_extract.cocci
Coccinelle semantic patch on target/avr/, we get:

   [DBG] candidate at target/avr/translate.c:228
   [DBG] candidate at target/avr/translate.c:266
   [DBG] candidate at target/avr/translate.c:885
   [DBG] candidate at target/avr/translate.c:924
   [DBG] candidate at target/avr/translate.c:962

Manually inspect and replace combinations of (shri, andi)
opcodes by the extract opcode.

Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
---
  target/avr/translate.c | 16 +++++-----------
  1 file changed, 5 insertions(+), 11 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]