Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Handles the case of instruction SIGNEXTEND in BIN module
Adds 1000 traces for INST=11 extracted from
bin.all.bz2
in bin.acceptsNote : at first, I thought I needed the index of the word's first non null byte, which I don't. Hence the util function
first_non_null_byte
- I kept it as it could be useful, but if you'd rather keep the utils lightweight, let me know 👌Note
Adds SIGNEXTEND handling to
bin
and introducessignextend
andfirst_nonzero_byte
utilities with extensive test vectors.SIGNEXTEND
(INST=11
) intestdata/asm/bench/bin.zkasm
: add dispatch tosignextend_call
, return unchanged for oversized index, and include../util/signextend.zkasm
.testdata/asm/util/signextend.zkasm
implementingsignextend(size, word)
usingbyte256
andfill_bytes_between
.testdata/asm/util/first_byte.zkasm
implementingfirst_nonzero_byte
helpers foru256
down tou16
.INST=11
cases totestdata/asm/bench/bin.accepts
.signextend
intestdata/asm/util/signextend.accepts
and forfirst_nonzero_byte
intestdata/asm/util/first_byte.accepts
.Test_AsmUtil_FirstByte
andTest_AsmUtil_Signextend
inpkg/test/assembly_util_test.go
.Written by Cursor Bugbot for commit 55c808a. This will update automatically on new commits. Configure here.