forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
For some instructions print_with_state for zkASM prints data related to RISC-V lowerings, for example:
wasmtime/cranelift/codegen/src/isa/zkasm/inst/mod.rs
Lines 965 to 973 in f65f194
| &Inst::LoadConst32 { rd, imm } => { | |
| let rd = format_reg(rd.to_reg(), allocs); | |
| let mut buf = String::new(); | |
| write!(&mut buf, "auipc {},0; ", rd).unwrap(); | |
| write!(&mut buf, "ld {},12({}); ", rd, rd).unwrap(); | |
| write!(&mut buf, "j {}; ", Inst::INSTRUCTION_SIZE + 4).unwrap(); | |
| write!(&mut buf, ".4byte 0x{:x}", imm).unwrap(); | |
| buf | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels