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<tsimp...@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.hender...@linaro.org>

r~

Reply via email to