qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Hexagon (target/hexagon) Add overrides for count trailing ze


From: Richard Henderson
Subject: Re: [PATCH] Hexagon (target/hexagon) Add overrides for count trailing zeros/ones
Date: Wed, 5 Apr 2023 15:16:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 4/5/23 09:42, Taylor Simpson wrote:
The following instructions are overriden
     S2_ct0            Count trailing zeros
     S2_ct1            Count trailing ones
     S2_ct0p           Count trailing zeros (register pair)
     S2_ct1p           Count trailing ones (register pair)

These instructions are not handled by idef-parser because the
imported semantics uses bit-reverse.  However, they are
straightforward to implement in TCG with tcg_gen_ctzi_*

Test cases added to tests/tcg/hexagon/misc.c

Signed-off-by: Taylor Simpson<tsimpson@quicinc.com>
---
  target/hexagon/gen_tcg.h | 24 +++++++++++++++++
  tests/tcg/hexagon/misc.c | 56 +++++++++++++++++++++++++++++++++++++++-
  2 files changed, 79 insertions(+), 1 deletion(-)

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

r~



reply via email to

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