Open nadiga-ventana opened 2 years ago
The "ISA Extension Naming Conventions" chapter of the unprivileged spec says: "The ISA naming strings are case insensitive." So it should be case-insensitive in the python (probably via re.IGNORECASE).
This error in the test has been fixed on the master of riscv-arch-test
. All the tests so far have the ISA strings in upper case. Should a case insensitive match be allowed? What do you think @neelgala @allenjbaum ?
well.. when introduced the RVTEST_ISA macro wasn't intended to be compliant with the "ISA Extension Naming Conventions". It's major usecase now is to derive the march
like arguments for each test. This becomes easy to do if we follow a case sensitive approach, where all standard extensions are upper-case (alphabets A-Z) and the Z extensions are lower-case.
so unless there is real value in forcing RVTEST_ISA to be compliant with "ISA Extension Naming Conventions" - I wouldn't suggest changing it. Following the case-sensitive approach should probably be put in the test-format spec to make it clear. RISCOF can additionally include checks to ensure that the tests follow this convention.
Also I believe the actual error reported in this issue has been fixed in the riscv-arch-test.
Getting this error when running RISCOF run for riscv-test-suite/rv64i_m/I/src/sll-01.S which has RVTEST_ISA("RV64i")
We probably need to make these two regexp case insensitive