qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH qemu v2 00/10] Add mask agnostic behavior for rvv instructions
@ 2022-05-10 18:26 ~eopxd
  2022-03-17  7:26 ` [PATCH qemu v2 01/10] target/riscv: rvv: Add mask agnostic for vv instructions ~eopxd
                   ` (9 more replies)
  0 siblings, 10 replies; 22+ messages in thread
From: ~eopxd @ 2022-05-10 18:26 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv
  Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Frank Chang,
	WeiWei Li, eop Chen

According to v-spec, mask agnostic behavior can be either kept as
undisturbed or set elements' bits to all 1s. To distinguish the
difference of mask policies, QEMU should be able to simulate the mask
agnostic behavior as "set mask elements' bits to all 1s".

There are multiple possibility for agnostic elements according to
v-spec. The main intent of this patch-set tries to add option that
can distinguish between mask policies. Setting agnostic elements to
all 1s allows QEMU to express this.

The following instructions that are always unmasked and not affected:

- Vector add-with-carry and subtract-with-borrow instructions
- Vector merge and move instructions
- Vector reduction instructions
- Vector mask-register logical instructions
- `vcompress`

This patch set is based on v15 of patch set "Add tail agnostic behavior
for
rvv instructions".
Based on: <165220137795.17881.11560413809338015947-0@git.sr.ht>

v2 updates:
- Rebase upon changes of the tail agnostic patch-set
- Minor change for vector load/store instructions

Yueh-Ting (eop) Chen (9):
  target/riscv: rvv: Add mask agnostic for vv instructions
  target/riscv: rvv: Add mask agnostic for vector load / store
    instructions
  target/riscv: rvv: Add mask agnostic for vx instructions
  target/riscv: rvv: Add mask agnostic for vector integer shift
    instructions
  target/riscv: rvv: Add mask agnostic for vector integer comparison
    instructions
  target/riscv: rvv: Add mask agnostic for vector fix-point arithmetic
    instructions
  target/riscv: rvv: Add mask agnostic for vector floating-point
    instructions
  target/riscv: rvv: Add mask agnostic for vector mask instructions
  target/riscv: rvv: Add mask agnostic for vector permutation
    instructions

eopXD (1):
  target/riscv: rvv: Add option 'rvv_ma_all_1s' to enable optional mask
    agnostic behavior

 target/riscv/cpu.c                      |   1 +
 target/riscv/cpu.h                      |   2 +
 target/riscv/cpu_helper.c               |   2 +
 target/riscv/insn_trans/trans_rvv.c.inc |  32 +++++
 target/riscv/internals.h                |   5 +-
 target/riscv/translate.c                |   2 +
 target/riscv/vector_helper.c            | 152 ++++++++++++++++++++----
 7 files changed, 171 insertions(+), 25 deletions(-)

-- 
2.34.2


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

end of thread, other threads:[~2022-05-11  2:55 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-10 18:26 [PATCH qemu v2 00/10] Add mask agnostic behavior for rvv instructions ~eopxd
2022-03-17  7:26 ` [PATCH qemu v2 01/10] target/riscv: rvv: Add mask agnostic for vv instructions ~eopxd
2022-05-11  2:06   ` Weiwei Li
2022-03-17  7:47 ` [PATCH qemu v2 02/10] target/riscv: rvv: Add mask agnostic for vector load / store instructions ~eopxd
2022-05-11  1:59   ` Weiwei Li
2022-05-11  2:53   ` Weiwei Li
2022-03-17  8:38 ` [PATCH qemu v2 03/10] target/riscv: rvv: Add mask agnostic for vx instructions ~eopxd
2022-05-11  2:07   ` Weiwei Li
2022-03-17  8:43 ` [PATCH qemu v2 04/10] target/riscv: rvv: Add mask agnostic for vector integer shift instructions ~eopxd
2022-05-11  2:09   ` Weiwei Li
2022-03-17  8:46 ` [PATCH qemu v2 05/10] target/riscv: rvv: Add mask agnostic for vector integer comparison instructions ~eopxd
2022-05-11  2:24   ` Weiwei Li
2022-03-17  8:52 ` [PATCH qemu v2 06/10] target/riscv: rvv: Add mask agnostic for vector fix-point arithmetic instructions ~eopxd
2022-05-11  2:26   ` Weiwei Li
2022-03-17  9:08 ` [PATCH qemu v2 07/10] target/riscv: rvv: Add mask agnostic for vector floating-point instructions ~eopxd
2022-05-11  2:28   ` Weiwei Li
2022-03-17  9:14 ` [PATCH qemu v2 08/10] target/riscv: rvv: Add mask agnostic for vector mask instructions ~eopxd
2022-05-11  2:37   ` Weiwei Li
2022-03-17  9:32 ` [PATCH qemu v2 09/10] target/riscv: rvv: Add mask agnostic for vector permutation instructions ~eopxd
2022-05-11  2:38   ` Weiwei Li
2022-05-10 18:10 ` [PATCH qemu v2 10/10] target/riscv: rvv: Add option 'rvv_ma_all_1s' to enable optional mask agnostic behavior ~eopxd
2022-05-11  2:39   ` Weiwei Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).