riscv-software-src / riscv-isa-sim

Spike, a RISC-V ISA Simulator
Other
2.47k stars 864 forks source link

Illegal Instruction overlap difference between vfwadd_wf and vwadd_wx #1766

Open FariaaFaheem opened 3 months ago

FariaaFaheem commented 3 months ago

Why is vfwadd_wf v24, v24, ft10 illegal but vwadd_wx v24, v24, x2 legal?

image

aswaterman commented 3 months ago

They're both legal.

I'm guessing that you either forgot to set mstatus.FS to nonzero, or you have vtype.vsew set to a value corresponding to an unsupported floating-point format.

EDIT: I now see mstatus.FS is nonzero in your code, so I'm guessing vtype.vsew is the culprit.