Skip to content

Commit

Permalink
chore: add q0..4 accessors for registers [4/? memcpy] (#166)
Browse files Browse the repository at this point in the history
Co-authored-by: Shilpi Goel <[email protected]>
  • Loading branch information
bollu and shigoel authored Sep 19, 2024
1 parent 5ec5b07 commit 5f6bd3b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Arm/State.lean
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,16 @@ These mnemonics make it much easier to read and write theorems about assembly pr

@[state_simp_rules] abbrev ArmState.x2 (s : ArmState) : BitVec 64 := r (StateField.GPR 2) s

@[state_simp_rules] abbrev ArmState.q0 (s : ArmState) : BitVec 128 := r (StateField.SFP 0) s

@[state_simp_rules] abbrev ArmState.q1 (s : ArmState) : BitVec 128 := r (StateField.SFP 1) s

@[state_simp_rules] abbrev ArmState.q2 (s : ArmState) : BitVec 128 := r (StateField.SFP 2) s

@[state_simp_rules] abbrev ArmState.q3 (s : ArmState) : BitVec 128 := r (StateField.SFP 3) s

@[state_simp_rules] abbrev ArmState.q4 (s : ArmState) : BitVec 128 := r (StateField.SFP 4) s

@[state_simp_rules] abbrev ArmState.sp (s : ArmState) : BitVec 64 := r (StateField.GPR 31) s

@[state_simp_rules] abbrev ArmState.V (s : ArmState) : BitVec 1 := r (StateField.FLAG PFlag.V) s
Expand Down

0 comments on commit 5f6bd3b

Please sign in to comment.