Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions RISCV/Instructions.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ namespace RV64

/-! # RV64I Base Integer Instruction Set -/

/--
Load a 64-wide immediate into the destination register rd
-/
def li (imm : BitVec 64) : BitVec 64 :=
imm


/--
Build 32-bit constants and uses the U-type format. LUI places the U-immediate value in the top 20
bits of the destination register rd, filling in the lowest 12 bits with zeros.
Expand Down