riscv-vector-tests icon indicating copy to clipboard operation
riscv-vector-tests copied to clipboard

Generate Load/Store tests where EEW!=SEW

Open akifejaz opened this issue 7 months ago • 1 comments

Hi,

I noticed that the load/store tests only generate tests where SEW==EEW, Is there any way I can generate tests for EEW!=SEW?

For Example:

When I run this cmd ..

make -e VLEN=2048 XLEN=64 MODE=machine PATTERN='^vle8\.v$' -j8 

I get tests like ...

...
...
# -------------- TEST BEGIN --------------
li t0, 255
vsetvli t1, t0, e8,mf4,ta,ma
vle8.v v1, (a0), v0.t
# -------------- TEST END   --------------
...
...

here sew==eew, I want to generate tests where same vle8.v is tested with different SEWs (vsetvli).

I saw for Indexed load/store it does generate tests where eew!=sew ... like this below command generates ..

make -e VLEN=2048 XLEN=64 MODE=machine PATTERN='^vluxei8\.v$' -j8

tests like ... (eew!=sew)

# -------------- TEST BEGIN --------------
li t0, 139
vsetvli t1, t0, e16,mf4,ta,ma
vluxei8.v v1, (a0), v2
# -------------- TEST END   --------------

or Is this scripts don't support this for UnitStride/Strided Instructions? (if yes! Can you guide me a bit how can this be generated?)

akifejaz avatar May 28 '25 15:05 akifejaz

Yeah, I think it's not currently supported, but it really should. Thanks for bringing this up. I'll add that support when I find the time, and I'm also happy to review some PRs if you or anyone is interested.

ksco avatar May 28 '25 15:05 ksco