Skip to content
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

Potential issue with test case for indexed-unordered segment stores due to variance in storage order #61

Open
hugo-starfive opened this issue Dec 23, 2024 · 0 comments

Comments

@hugo-starfive
Copy link

Description:

When testing the vsuxseg2ei16 instruction, the test case fails under specific conditions. Upon further analysis, it was found that address overlap in the test cases, according to the RISC-V spec description for vsuxseg2ei16,

image

When the data in v5 has a sequence of difference 2, for example, v5={2,4,... }, the addresses of v3[0] and v2[1] overlap. There exists a scenario where v2[1] can overwrite the value stored by v3[0].

Since the instruction is Indexed-unordered segment stores, when address overlap occurs, the addressable data is theoretically unpredictable

Based on the results of my tests and my personal understanding, I think the test of Indexed-unordered segment stores directive may need further improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant