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

callx test will always pass #203

Open
hawkinsw opened this issue Feb 19, 2024 · 3 comments
Open

callx test will always pass #203

hawkinsw opened this issue Feb 19, 2024 · 3 comments

Comments

@hawkinsw
Copy link
Collaborator

Given the unconditional mov of 0x2 to %r0, will this test always pass?

cc @dthaler

@dthaler
Copy link
Collaborator

dthaler commented Feb 19, 2024

Not specific to callx.data. This test was derived from call_unwind_fail.data which has the same behavior.

@hawkinsw
Copy link
Collaborator Author

Glad I wasn't seeing ghosts! I will fix both of those! Thank you for confirming!

@hawkinsw
Copy link
Collaborator Author

Unfortunately because the callx.data and the call_unwind_fail.data test rely on the behavior of the implementation-under-test's unwind helper function, I don't know if there is a better way to write a test.

Perhaps we could extend the conformance system so that a test could also specify a particular implementation of a helper function in order to have a test pass?

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

2 participants