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

Mark bswap32 instrinsic with interpreter primitive annotation #11582

Merged

Conversation

rymiel
Copy link
Contributor

@rymiel rymiel commented Dec 14, 2021

Unlike bswap16 (and most other intrinsics), bswap32 wasn't marked with the Primitive annotation when in interpreted mode, despite an instruction seemingly existing for it

Discovered while trying to run the compiler in interpreted mode

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter labels Dec 14, 2021
Copy link
Member

@asterite asterite 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!

I wonder if we can add a spec for this.

@beta-ziliani
Copy link
Member

I added it to the milestone, and we can add the spec later after #11578 is merged

@straight-shoota straight-shoota merged commit 180fb2c into crystal-lang:master Dec 22, 2021
@rymiel rymiel deleted the interpreter-bswap32-intrinsic branch December 22, 2021 16:39
@straight-shoota straight-shoota changed the title Mark bswap32 instrinsic with interpreter primitive annotation Mark bswap32 instrinsic with interpreter primitive annotation Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants