All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC v2 00/15] support subsets of bitmanip extension
@ 2020-12-16  2:01 frank.chang
  2020-12-16  2:01   ` frank.chang
                   ` (14 more replies)
  0 siblings, 15 replies; 63+ messages in thread
From: frank.chang @ 2020-12-16  2:01 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv; +Cc: Frank Chang

From: Frank Chang <frank.chang@sifive.com>

This patchset implements RISC-V B-extension draft version Zbb, Zbs and
Zba subset instructions. Some Zbp instructions are also implemented as
they have similar behavior with their Zbb-, Zbs- and Zba-family
instructions or for Zbb pseudo instructions (e.g. rev8, orc.b).

Specification:
https://github.com/riscv/riscv-bitmanip

Summary of current proposals for Zb{abcs}:
https://lists.riscv.org/g/tech-bitmanip/topic/summary_of_current_proposals/77924315

The port is available here:
https://github.com/sifive/qemu/tree/rvb-upstream-v2

To test rvb implementation, specify cpu argument with 'x-b=true' to
enable B-extension support.

Changelog:

v2:
 * Add gen_shifti(), gen_shiftw(), gen_shiftiw() helper functions.
 * Remove addwu, subwu and addiwu instructions as they are not longer
   exist in latest draft.
 * Optimize implementation with cleaner tcg ops.

Frank Chang (3):
  target/riscv: rvb: count bits set
  target/riscv: rvb: generalized reverse
  target/riscv: rvb: generalized or-combine

Kito Cheng (12):
  target/riscv: reformat @sh format encoding for B-extension
  target/riscv: rvb: count leading/trailing zeros
  target/riscv: rvb: logic-with-negate
  target/riscv: rvb: pack two words into one register
  target/riscv: rvb: min/max instructions
  target/riscv: rvb: sign-extend instructions
  target/riscv: rvb: single-bit instructions
  target/riscv: rvb: shift ones
  target/riscv: rvb: rotate (left/right)
  target/riscv: rvb: address calculation
  target/riscv: rvb: add/sub with postfix zero-extend
  target/riscv: rvb: support and turn on B-extension from command line

 target/riscv/bitmanip_helper.c          | 103 ++++++
 target/riscv/cpu.c                      |   4 +
 target/riscv/cpu.h                      |   2 +
 target/riscv/helper.h                   |   9 +
 target/riscv/insn32-64.decode           |  33 ++
 target/riscv/insn32.decode              |  54 ++-
 target/riscv/insn_trans/trans_rvb.c.inc | 466 ++++++++++++++++++++++++
 target/riscv/meson.build                |   1 +
 target/riscv/translate.c                | 337 +++++++++++++++++
 9 files changed, 1003 insertions(+), 6 deletions(-)
 create mode 100644 target/riscv/bitmanip_helper.c
 create mode 100644 target/riscv/insn_trans/trans_rvb.c.inc

--
2.17.1



^ permalink raw reply	[flat|nested] 63+ messages in thread

end of thread, other threads:[~2020-12-16 18:35 UTC | newest]

Thread overview: 63+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16  2:01 [RFC v2 00/15] support subsets of bitmanip extension frank.chang
2020-12-16  2:01 ` [RFC v2 01/15] target/riscv: reformat @sh format encoding for B-extension frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 15:15   ` Richard Henderson
2020-12-16 15:15     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 02/15] target/riscv: rvb: count leading/trailing zeros frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 15:21   ` Richard Henderson
2020-12-16 15:21     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 03/15] target/riscv: rvb: count bits set frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 15:24   ` Richard Henderson
2020-12-16 15:24     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 04/15] target/riscv: rvb: logic-with-negate frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 15:25   ` Richard Henderson
2020-12-16 15:25     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 05/15] target/riscv: rvb: pack two words into one register frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 16:23   ` Richard Henderson
2020-12-16 16:23     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 06/15] target/riscv: rvb: min/max instructions frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 16:23   ` Richard Henderson
2020-12-16 16:23     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 07/15] target/riscv: rvb: sign-extend instructions frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 16:25   ` Richard Henderson
2020-12-16 16:25     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 08/15] target/riscv: rvb: single-bit instructions frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 16:34   ` Richard Henderson
2020-12-16 16:34     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 09/15] target/riscv: rvb: shift ones frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 16:35   ` Richard Henderson
2020-12-16 16:35     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 10/15] target/riscv: rvb: rotate (left/right) frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 16:39   ` Richard Henderson
2020-12-16 16:39     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 11/15] target/riscv: rvb: generalized reverse frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 16:52   ` Richard Henderson
2020-12-16 16:52     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 12/15] target/riscv: rvb: generalized or-combine frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 18:15   ` Richard Henderson
2020-12-16 18:15     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 13/15] target/riscv: rvb: address calculation frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 18:17   ` Richard Henderson
2020-12-16 18:17     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 14/15] target/riscv: rvb: add/sub with postfix zero-extend frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16 18:30   ` Richard Henderson
2020-12-16 18:30     ` Richard Henderson
2020-12-16  2:01 ` [RFC v2 15/15] target/riscv: rvb: support and turn on B-extension from command line frank.chang
2020-12-16  2:01   ` frank.chang
2020-12-16  9:14   ` Kito Cheng
2020-12-16  9:14     ` Kito Cheng
2020-12-16 18:31     ` Richard Henderson
2020-12-16 18:31       ` Richard Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.