feat: rv64 alu lt shift#2461
Merged
876pol merged 8 commits intodevelop-v1.8.0from Mar 4, 2026
Merged
Conversation
bfa3808 to
609552b
Compare
8051c30 to
a0966b7
Compare
jonathanpwang
approved these changes
Mar 3, 2026
Towards INT-6319. Summary: - `branch_eq` and `branch_lt` submodules of `riscv` have been ported from RV32 to RV64 - All types/structs renamed from `Rv32*` to `Rv64*` (e.g., `Rv32BranchAdapterAir` → `Rv64BranchAdapterAir`) - Operand width changed from `u32`/4 bytes to `u64`/8 bytes throughout (registers, comparisons) - `Rv64BranchAdapter` (shared by `branch_eq` and `branch_lt`) updated for RV64 - Uncommented `branch_eq` and `branch_lt` in `extension/mod.rs` and `lib.rs` (previously marked `TEMP: disabled until ported to RV64`) - Updated tests to use RV64 conventions (8-byte arrays, `RV64_REGISTER_NUM_LIMBS`, `RV64_CELL_BITS`) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
shuklaayush
pushed a commit
that referenced
this pull request
Apr 27, 2026
Towards INT-6319. Summary: - `base_alu`, `less_than`, and `shift` submodules of `riscv` have been ported from RV32 to RV64 - All types/structs renamed from `Rv32*` to `Rv64*` (e.g., `Rv32BaseAluAdapterAir` → `Rv64BaseAluAdapterAir`) - Operand width changed from `u32`/4 bytes to `u64`/8 bytes throughout (registers, ALU ops, compose/decompose helpers) - `Rv64BaseAluAdapter` (shared by all three submodules) updated for RV64 - New constraints added to enforce bytes 3–7 all equal the sign byte for correct 64-bit sign extension (previously only byte 3 was constrained for 32-bit) - Added tests for the above constraint in `base_alu`, `less_than`, `shift`. - Changed constant `DEFAULT_U8_BLOCK_SIZE` from 4 to 8 (matching RV64 register width) - Commented out unported code in `extension/mod.rs` and `lib.rs` (load/store, branch, jal/jalr, auipc, mul/div — all marked `TEMP: disabled until ported to RV64`) with manual empty-enum trait impls to keep the crate compiling - Updated `test_utils.rs` to use RV64 conventions (`generate_rv64_is_type_immediate`, `rv64_rand_write_register_or_imm`) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Towards INT-6319.
Summary:
base_alu,less_than, andshiftsubmodules ofriscvhave been ported from RV32 to RV64Rv32*toRv64*(e.g.,Rv32BaseAluAdapterAir→Rv64BaseAluAdapterAir)u32/4 bytes tou64/8 bytes throughout (registers, ALU ops, compose/decompose helpers)Rv64BaseAluAdapter(shared by all three submodules) updated for RV64base_alu,less_than,shift.DEFAULT_U8_BLOCK_SIZEfrom 4 to 8 (matching RV64 register width)extension/mod.rsandlib.rs(load/store, branch, jal/jalr, auipc, mul/div — all markedTEMP: disabled until ported to RV64) with manual empty-enum trait impls to keep the crate compilingtest_utils.rsto use RV64 conventions (generate_rv64_is_type_immediate,rv64_rand_write_register_or_imm)