-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RISC-V RVV Bad execution of riscv rvv vss instruction #594
Comments
Thanks for pointing this out. From what I see In the gem5 VSStride macro-op template ( gem5/src/arch/riscv/isa/templates/vector_mem.isa Lines 1014 to 1048 in 3896673
build/RISCV/arch/riscv/generated/exec-ns.cc.inc ), the VSS (vector strided-store) macro instructions do not take into account NFIELDS; so I don't think the segmented VsStride instructions with NFIELDS != 0 are supported.
|
Hi, I guess this is expected, since as far as I am aware unit-stride segmented loads/stores are not implemented yet. Their encoding only differ from vle/vse in NFIELDS, which is not currently checked in the decoder. Because of that, they are probably being interpreted as vle/vse ones (which makes sense with the results you are getting, only first field is right). I am currently working on the implementation of these instructions (#382). While I expect to have them soon, it is still work in progress. -Ivan |
Hi @ivanfv, could you please let us know if this issue should be closed or if there is a real bug? Thank you. |
Hi @ivanaamit, yes, I think this issue should be closed since vector segmented store instructions were added with PR #913 |
Describe the bug
RVV vsseg2e32 instruction doesn't work properly.
Affects version
Found in commit 3896673 (develop)
Date: Sat Nov 18
To Reproduce
The reproducer is in https://github.com/vmskv/gem5/tree/vmskv/bad_interleave_reproducer
The steps to reproduce are in
README_assembler.txt
or in
README_intrinsics.txt
Expected behavior
Instruction should interleave the elements of input vectors
expected:
but returns 0s
Host Operating System
Ubuntu 20.04
Guest ISA
RISC-V.
The text was updated successfully, but these errors were encountered: