riscv-software-src / riscv-software-src/riscv-tests
.option rvc make the test wrong
Nobody has claimed this yet.
- Dominant language
- Assembly
- Stars
- 1.2k
- Forks
- 566
- Avg merge
- 10h 3m
- Merged PRs (30d)
- 4
Description
During my test, isa/rv32mi/ma_fetch.S made some errors.
According to the check, I found the code isa/rv64si/ma_fetch.S cause this
Code, The j pass instruction on line 132 can't be translated properly by the translator, but if you comment out the .option rvc on line 129 and change the c.nop on line 130 to nop it is possible to pass. In 32-bit, rv32mi's -march option adding the c directive to run with the original code at line 90 corresponding to isa's Makefile file also still reports an error. I don't know how to solve this problem, can anyone help me?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure in isa/rv32mi/ma_fetch.S and compare it with isa/rv64si/ma_fetch.S, focusing on the .option rvc, c.nop, and j pass lines identified in the report. Inspect the corresponding isa/Makefile -march settings and the translator behavior; done means the affected tests pass without the reported workaround.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100