mbox series

[0/2] tcg/riscv: Use BEXTI for single-bit extractions

Message ID 20250102181601.1421059-1-richard.henderson@linaro.org
Headers show
Series tcg/riscv: Use BEXTI for single-bit extractions | expand

Message

Richard Henderson Jan. 2, 2025, 6:15 p.m. UTC
Based-on: 20250102180654.1420056-1-richard.henderson@linaro.org
("[PATCH 00/73] tcg: Merge *_i32 and *_i64 opcodes")

While riscv does not yet have a completely general extract,
the Zbs extension added a single-bit extract.

Tested on cfarm95, a Banana Pi BPI-F3.


r~


Richard Henderson (2):
  util/cpuinfo-riscv: Detect Zbs
  tcg/riscv: Use BEXTI for single-bit extractions

 host/include/riscv/host/cpuinfo.h |  5 +++--
 tcg/riscv/tcg-target-has.h        |  8 +++++++-
 util/cpuinfo-riscv.c              | 18 ++++++++++++++++--
 tcg/riscv/tcg-target.c.inc        | 13 +++++++++++--
 4 files changed, 37 insertions(+), 7 deletions(-)