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 truncated loadu8. #164

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Add truncated loadu8. #164

merged 2 commits into from
Apr 30, 2024

Conversation

thealmarty
Copy link
Collaborator

@thealmarty thealmarty commented Apr 26, 2024

No regression in the tests with these changes, including the storeu8 and loadu8 tests. The loadu8 test includes a tloadu8 instruction. However, load_byte currently has a read before write error, which will be separately fixed.

@morganthomas
Copy link
Collaborator

This won't be implementable in the STARK without increasing the number of memory channels, because this instruction's semantics require three read channels and one write channel, but currently we only have two read channels and one write channel. A better solution long term may be to eliminate this opcode in a compiler pass, replacing it with a sequence of instructions.

@thealmarty thealmarty merged commit 4057c01 into main Apr 30, 2024
2 checks passed
thealmarty pushed a commit that referenced this pull request Apr 30, 2024
morganthomas pushed a commit that referenced this pull request Apr 30, 2024
…8" (#165)

This reverts commit 4057c01, reversing
changes made to e4c92a9.

Co-authored-by: thealmarty <“[email protected]”>
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