Closed marcfedorow closed 2 years ago
Quoth the spec, "The V extension depends upon the F and D extensions" -- RV64IV is the same as RV64IFDV.
It's true that this would break for Zve32x or Zve64x, but the test environments just don't currently support those extensions.
Quoth the spec, "The V extension depends upon the F and D extensions" -- RV64IV is the same as RV64IFDV.
Oh, I was not attentive enough.
I'll add the V implies FD
logic to spike, if everybody is OK woth it.
@marcfedorow Yeah, I'd appreciate you correcting that oversight.
https://github.com/riscv/riscv-test-env/blob/34a1175291f9531e85afdb89aaa77707f45fc8e4/p/riscv_test.h#L145
This will fail on
-march=rv64iv
becausecsrwi fcsr, 0
is an illegal instruction due to absence ofmisa.F
. If I understand correctly, riscv-v-spec does not assume the presence of floating point, i.e.misa.V
does not implymisa.F
. I suggest rename this macro toRVTEST_FP_VECTOR_ENABLE
and use it inRVTEST_RV[xlen]UFV
, and create macros for vector without FP.