Skip to content

target/riscv: Generate strided vector ld/st with tcg

Chao Liu qemu-devel qemu-riscv 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesNew
  2. v32 patches 2 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2target/riscv: Generate strided vector loads/stores with tcg nodes.target/riscv/insn_trans/trans_rvv.c.inc+269 -500 replies
2/2tests/tcg/riscv64: Add test for vlsseg8e32 instructiontests/tcg/riscv64/Makefile.softmmu-target tests/tcg/riscv64/test-vlsseg8e32.S+113 -20 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchEric BiggersDaniel Henrique Barboza
1/2T-b R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] target/riscv: Generate strided vector ld/st with tcg

Hi all,

Thanks Richard for the review.

For patch v4, the main modification is to improve the implementation of the get_log2() function.

+static inline uint32_t get_log2(uint32_t a)
+{
- uint32_t i = 0;
- if (a == 0) {
- return i;
- }
- for (; a > 1;) {
- a >>= 1;
- i++;

-    } 
+    assert(is_power_of_2(a));
+    return ctz32(a);

+}

patch v3 changes:
- Fix the get_log2() function:
https://lore.kernel.org/qemu-riscv/[email protected]/T/#t
- Add test for vlsseg8e32 instruction.
- Rebase on top of the latest master.

patch v2 changes:
- Split the TCG node emulation of the complex strided load/store operation into two separate functions to simplify the implementation:
https://lore.kernel.org/qemu-riscv/[email protected]/

Best regards,

Chao

Chao Liu (2):
Generate strided vector loads/stores with tcg nodes. tests/tcg/riscv64: Add test for vlsseg8e32 instruction

 target/riscv/insn_trans/trans_rvv.c.inc   | 319 ++++++++++++++++++----
 tests/tcg/riscv64/Makefile.softmmu-target |   8 +-
 tests/tcg/riscv64/test-vlsseg8e32.S       | 107 ++++++++
 3 files changed, 382 insertions(+), 52 deletions(-)
 create mode 100644 tests/tcg/riscv64/test-vlsseg8e32.S
Signature · 1 line
2.50.1