-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zfh's 'flh-align-01' test is executed even if Zfh is not enabled #448
Comments
flh_align-01.S contains RVTEST_ISA("RV32IF_Zicsr_Zfh,RV64IF_Zicsr_Zfh") When I build the tests with riscof, this prevents running this test on a system without Zfh. If you are building the tests with a different process that examines RVTEST_CASE rather than RVTEST_ISA, maybe the RVTEST_CASE should be more complete. It should be harmless to make RVTEST_CASE more comprehensive. I'd suggest you make a PR with the change. If it's hard for you to make this PR, I can make it for you. |
It seems to me that every test in the Zfh directory has exactly the same RISC_ISA parameter, and exactly the same RVTEST_CASE parameters, so either all should fail or none should fail. Is this not the case, but just flh_align is failing? That seems a bit strange, and if that is the case, we need to figure out why before we start changing anything. If there is some shortcoming/bug in riscof that requires that TEST_CASE change - that's one thing, The alternative is to make sure that your custom riscof at least follow the rules that tests should meet both RISC_ISA rules and TEST_CASE rules. Are any of my assertions here mistaken? |
The mistaken assertion is that not all tests have the same RISCV_ISA and RVTEST_CASE parameters. flh is an outlier for RISCV_TEST_CASE, which is causing the problem. flh-align-01 has
while other test cases such as flt_b1-01.S has
|
Huh; I thought I looked at the other tests and they were the same. |
I'll do a PR (#451). |
We clearly need a cleanup on the dev branch & start doing release from the
dev branch, so no more PRs to the main branch.
There's too much stuff in flight right now.
…On Tue, Apr 9, 2024 at 7:19 AM stnolting ***@***.***> wrote:
I'll do a PR.
Zfh is not yet available on the dev branch so I'll make a PR targeting the
main branch.
—
Reply to this email directly, view it on GitHub
<#448 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJWBZ3ASITXNKPAQNO3Y4P2GZAVCNFSM6AAAAABFLFXABSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVGI4TONRWGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am using the latest version of this repository for a custom RISCOF port. The test fails because the
Zfh/src/flh-align-01.S
test is executed although theZfh
ISA extension is not enabled.I am not sure, but maybe there is a typo in the
flh-align
test's regex list:riscv-arch-test/riscv-test-suite/rv32i_m/Zfh/src/flh-align-01.S
Line 32 in 8a0cdce
which (I think) should also include
F
andZfh
as in the remainingZfh
test cases:riscv-arch-test/riscv-test-suite/rv32i_m/Zfh/src/flt_b1-01.S
Line 32 in 8a0cdce
The text was updated successfully, but these errors were encountered: