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

Allow constant-folding of arbitrary-precision integer casts #4325

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

vlstill
Copy link
Contributor

@vlstill vlstill commented Jan 10, 2024

This showed as bug in testgen, but the core of the issue is that the constant folder was not handling (int) cast. That is fixed by this PR.

@mihaibudiu
Copy link
Contributor

No tests?

@vlstill
Copy link
Contributor Author

vlstill commented Jan 10, 2024

No tests?

Covered by existing tests (54f51b0).

@vlstill vlstill self-assigned this Jan 10, 2024
@vlstill vlstill added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Jan 10, 2024
@vlstill vlstill merged commit f70cea1 into p4lang:main Jan 11, 2024
13 checks passed
@vlstill vlstill deleted the fix-int-cfold branch January 11, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants