Hi all,
GCC implements the flag -misa-spec:
Specify the version of the RISC-V Unprivileged (formerly User-Level) ISA specification to produce code conforming to.
The default is -misa-spec=20191213
LLVM seems to be fixed conforming to isa spec 2.2. My question is should LLVM have an equivalent flag for both the clang driver and assembler? This would mostly control which default versions of standard extensions are used.
I did take some time to try and implement this flag, to some degree of success. There were a few challenges and it’s rough around the edges. I can put it up for a review soon if there’s interest.
Thanks,
Joe