-
Notifications
You must be signed in to change notification settings - Fork 199
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
Update tests for B extension #427
base: dev
Are you sure you want to change the base?
Conversation
For reasons Allen and I don't entirely understand, some riscof installations require XLEN in the RVTEST_CASE macro to select the correct set of tests to build. Some tests such as the I suite already have this, but I've been having to add the XLEN check to many of the newer test suites. Would it be possible to modify your script to generate tests that include the XLEN check? For example, in rv32i_m/B/src/andn-01.S please change RVTEST_CASE(0,"//check ISA:=regex(.*I.B.);def TEST_CASE_1=True;",andn) |
The RVTEST_CASE macro is part of the template that is generated by the CTG
(compatibility Test Generator) program
(when tests aren't hand generated, as many priv and non-ISA oriented tests
seem to be moving to)
So, this change sounds like it could be part of either RISCOF, but more
likely part of CTG, not part of arch-test;
I would file this issue in that repo.
I'm having the template part of the CTG code updated to be much much
simpler (and moving the complexity to existing arch-test macros) and all
the tests re-generated, and this could be part of it.
…On Mon, Jan 29, 2024 at 5:05 AM David Harris ***@***.***> wrote:
For reasons Allen and I don't entirely understand, some riscof
installations require XLEN in the RVTEST_CASE macro to select the correct
set of tests to build. Some tests such as the I suite already have this,
but I've been having to add the XLEN check to many of the newer test
suites. Would it be possible to modify your script to generate tests that
include the XLEN check?
For example, in rv32i_m/B/src/andn-01.S
please change
RVTEST_CASE(0,"//check ISA:=regex(.*I.*B.*);def TEST_CASE_1=True;",andn)
to
RVTEST_CASE(0,"//**check ISA:=regex(.*32.*);**check ISA:=regex(.*I.*B.*);def
TEST_CASE_1=True;",andn)
—
Reply to this email directly, view it on GitHub
<#427 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJRCBOL3M7TWK5KBKZTYQ6NBHAVCNFSM6AAAAABB2KKHFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGY2TONRXGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This gets generated from the string in the cgf - "check ISA:=regex(.*I.B.)". Fixing this will need the cgf file to be updated to add the xlen filter and then regenerate the files. My PR to add B just got merged into dev branch of CTG so I cannot update that PR unfortunately. A new PR would be needed.
I have noticed it will generate a warning of by selecting more tests into the test data base but nothing bad besides that. I am not sure why we cannot just fix riscof to look at both the test ISA and the ISA string for doing the test selection. But seems like Allen has a better fix in mind. |
Thank you. Let's defer to Allen's recommendation. |
I think we need a "best practices" document... |
Description
Related Issues
Ratified/Unratified Extensions
List Extensions
Reference Model Used
Mandatory Checklist:
Optional Checklist: