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

Add can_read to memories #267

Merged
merged 8 commits into from
Nov 3, 2022
Merged

Add can_read to memories #267

merged 8 commits into from
Nov 3, 2022

Conversation

yamaguchi1024
Copy link
Member

I have no idea why we didn't discover this until now...

@yamaguchi1024
Copy link
Member Author

FYI this is coming from Adrian's email

@alexreinking
Copy link
Contributor

I think the problem is with this line:

raise False

Should be return, not raise... what issue was Adrian seeing? I'm not sure I got the email.

@yamaguchi1024
Copy link
Member Author

@alexreinking The line is fine, it's trying to say that whoever inherits this class should specify if the memory is readable or not, which I think is fair.

Copy link
Contributor

@alexreinking alexreinking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason to skip this test.


import numpy as np


@pytest.mark.isa("neon")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test doesn't actually run anything on NEON, it just needs to get as far as generating C. Therefore it should never be skipped and you can check that read_neon.c_code_str() throws the expected MemGenError.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense!

Copy link
Contributor

@alexreinking alexreinking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good when green

@yamaguchi1024 yamaguchi1024 merged commit f412212 into master Nov 3, 2022
@yamaguchi1024 yamaguchi1024 deleted the fix_neon branch November 3, 2022 21:24
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

Successfully merging this pull request may close these issues.

2 participants