The RVV CSR test file can be tested successfully without the mattr attribute
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
70 ms | x64 debian > LLVM.Bindings/Go::go.test |
Event Timeline
Whether Vector CSRs should be allowed to be accessed when V extensions are not enabled?
I mean, is there a wrong implementation or a wrong test case?
I found this patch where the F extension check was removed from fcsr, fflags, and frm based on binutils not checking. https://reviews.llvm.org/D58932 But it looks like binutils may have implemented checking after that patch https://sourceware.org/legacy-ml/binutils/2019-12/msg00222.html
But it looks like binutils may have implemented checking after that patch https://sourceware.org/legacy-ml/binutils/2019-12/msg00222.html
Yes, if you enable GNU assembler -mcsr-check option, then you probably will see some CSR warnings for checking the march, rv32-only and read-only. But I forgot why we chosen to report warnings rather than errors...
I think we should make Vector ext same as F extensions.
make CSRs can be accessed without V ext.
So I think this patch is make sense now.