Skip to content

Commit

Permalink
Fix InsnKind in SLT (#750)
Browse files Browse the repository at this point in the history
Closes #746
  • Loading branch information
zemse authored Dec 13, 2024
1 parent af836bf commit 7ea23d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ceno_zkvm/src/instructions/riscv/slt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<E: ExtensionField, I: RIVInstruction> Instruction<E> for SetLessThanInstruc

let r_insn = RInstructionConfig::<E>::construct_circuit(
cb,
InsnKind::SLT,
I::INST_KIND,
rs1_read.register_expr(),
rs2_read.register_expr(),
rd_written.register_expr(),
Expand Down Expand Up @@ -159,7 +159,7 @@ mod test {
.unwrap()
.unwrap();

let insn_code = encode_rv32(InsnKind::SLT, 2, 3, 4, 0);
let insn_code = encode_rv32(I::INST_KIND, 2, 3, 4, 0);
let (raw_witin, lkm) = SetLessThanInstruction::<_, I>::assign_instances(
&config,
cb.cs.num_witin as usize,
Expand Down

0 comments on commit 7ea23d4

Please sign in to comment.