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

Richard Henderson posted 2 patches 3 months ago
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(-)
[PATCH 0/2] tcg/riscv: Use BEXTI for single-bit extractions
Posted by Richard Henderson 3 months ago
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(-)

-- 
2.43.0