-
Notifications
You must be signed in to change notification settings - Fork 0
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
Zce architecture tests #6
Comments
Per 4/11 email from Prasanna:
|
No progress made since last Call. Was busy on Zfinx. |
Ok. Please keep this as a focus item. We need to start showing progress here. |
The dry of the tests designed was resumed against SPIKE, still seeing few failures. Fixing/Modifying the tests/frameworks is underway. |
Glad we are once again making progress! |
@ptprasanna, any update? |
@pz9115, raising this to your attention as @ptprasanna is working a possible toolchain issue. |
Possibly an issue, but discussing with @Abdulwadoodd to get different point of view, before we conclude the issue with the tool chain. Also discussing with @pz9115 as well. |
Feed back from @Abdulwadoodd:
|
Zcf - Tests are generated using CTG, but the execution is not successful. Possibly a tool-chain issue (assuming), or the generated test are wrong. Still investigating. |
Thanks, @ptprasanna! Will remove from Agenda for this week. Please feel free to reach out if you need technical assistance debugging. |
@ptprasanna, please update status here. |
Regarding Zcf and Zcd extension, possibly an toolchain issue(assuming) and discussed with @pz9115. Got a feedback from @pz9115, 1.Since Zce is not upstream yet,need to checkout gcc and binutils into the downstream repo, Gcc: https://github.com/openhwgroup/corev-gcc/commits/development-08dd5f65b06
As per the feedback,I have done all the changes but still I am facing the same issue. @pz9115, Can you give me any suggestions to resolve the issue? |
Hi @anuani21, Can you provide the error log for me to learn more about the cause of the error, thanks. |
Hi @pz9115, Here I have attached the error log for your reference. |
Hi @anuani21, I found some compressed instructions that used in the log file, such as:
Where you use fpr as the second operand. As the instruction defination, it load from memory, computes an effective address by adding the zero-extended as offset scaled by 4. So you should use gpr instead fpr as the second operand and set the offset positive and multiple it 4, such as:
|
Hi @ptprasanna, @jjscheel RISC-V Config PR is merged which adds support of Code size reduction extension to This was critical because RISCOF and ISAC use riscv config to run tests and generate coverage reports respectively. One can run Zce ACTs using RISCOF by updating the riscv-config version. |
No progress made since last Call. Was busy on Debug ACT for Native Triggers. |
Updates from IITM,
|
Great. THANKS!!! |
Updates from IITM,
|
Update : While running the test I am encounter this assembler error which is saying "Zcm* is not compatible with C extension" . I asked tariq sir also about this error , to which sir suggested it might be toolchain bug. @pz9115 sir can you please help me here . I have attched ss of the error |
@JAYANTH-IITM I think this is cause by the toolchain version issue, we'd better update both First, use git clone get the riscv-gnu-toolchain
Then we need to prepare the environment, On Ubuntu, executing the following command should suffice:
The next step, go into subdir
After this, we need to set the toolchain installation directory(in
If you meet any problems in toolchain, please feel free to ask me at anytime. |
Thank you sir . will update the toolchain and redo the tests . |
Hi @pz9115 , |
Hi @JAYANTH-IITM ,it needs to use the first form I think(-with-arch=rv32ic_zicsr_zca_zcmp_zcmt), but currently zcmt haven't merged in upstream yet,. It means that you need to apply the zcmt patch into binutils and then re-build the toolchain, the patch link is https://patchwork.sourceware.org/project/binutils/patch/[email protected]/ you can click the """ |
Hi @pz9115 , " Applying: RISC-V: Add Zcmt instructions and csr. |
I think this is caused by binutils submodule not updated correctly, please checkout the binutils into the latest master branch, |
Toolchain working fine @pz9115 . Thank you ! |
@pz9115 @tariqkurd-repo , for the instruction cm.popret and cm.popretz it is working only for imm_val (spimm) 0 , for imm_val 1 , 2 and 3 it is not working. But cm.push and cm.pop is working fine . Can you please guide here . @allenjbaum , the test macro that I written for zcmp and zcmt does not append any signature ( but i am able get the expected coverage for all instruction as expected , expect for the above case ) . attached the test_macro for reference
sorry , closed by mistake |
I tested with a simple example
The Could you give more detail about this error, thanks.
|
when i try to execute this i am encountering ( I tried the same by using x register , but the same ) inside of using (ra , s0-s1) if (ra,s0,s1) is used it working ( which does not match with the spec )
|
Let me explain why it's wrong here, in Zcmp, the base of You can find the Using |
Updates from IIT-M ,
reg : expected signature for zmp and zcmt test, need some guidance here @allenjbaum |
I think you need to describe in a bit more detail the coverage you expect,
and the coverage that is missing.
(and I need to re-read the spec for those.)
…On Tue, Nov 12, 2024 at 1:21 AM JAYANTH-IITM ***@***.***> wrote:
Updates from IIT-M ,
1. Tests for Zcmp and Zcmt are complete . Not getting expected
coverage in cm.popret and cm.popretz . Other than these two , getting
expected coverage in all other test.
reg : expected signature for zmp and zcmt test, need some guidance here
@allenjbaum <https://github.com/allenjbaum>
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJS7T4IZ4RQDDVDIM7L2AHCDNAVCNFSM6AAAAAAV5WEWZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRZHA2TMMBTGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There are multiple problems with this test (and probably the others):
That return address entry should be the address of an instruction that follows the POPRET. Preferably, the macro should put noops after the POPRET and point the return address to be after those noops so we can write tests that will trap during the execution (which I'm pretty sure is not part of the coverage that was defined).
|
|
Zcf and Zcd PR is merged to dev. |
Thanks, @anuani21. Can you kindly provide a pointer to the PRs? |
Zcf and Zcf extension PR:
riscv-non-isa/riscv-arch-test#497
It is merged.
…On Tue, 7 Jan, 2025, 5:46 pm Jeff Scheel, ***@***.***> wrote:
Thanks, @anuani21 <https://github.com/anuani21>. Can you kindly provide a
pointer to the PRs?
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3G6FFYXP4DAJID6ZX4Z3E32JPATPAVCNFSM6AAAAAAV5WEWZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZVGEZTSMRVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Technical Group
Code Size Reduction TG
ratification-pkg
Code Size
Technical Liaison
Tariq Kurd
Task Category
Arch Tests
Task Sub Category
Ratification Target
1Q2023
Statement of Work (SOW)
SOW link
SOW Signoffs: (delete those not needed)
Waiver
Pull Request Details
No response
The text was updated successfully, but these errors were encountered: