Skip to content

Commit

Permalink
apply upstream changes from BinaryAnalysisPlatform#1454
Browse files Browse the repository at this point in the history
  • Loading branch information
DukMastaaa committed Apr 11, 2022
1 parent 7bd7dbb commit 0231a76
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions plugins/arm/semantics/arm-bits.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
with carry bit c after clearing the base register rd, and sets processor flags."
(let ((r (+ c y x)))
(set-nzcv-from-registers r y x)
(clear-base rd)
(set$ rd r)))
(setw rd r)))

(defun add-with-carry/it-block (rd x y c cnd)
"(add-with-carry/it-block rd x y c cnd) sets rd to the result of adding x and y
Expand Down Expand Up @@ -87,12 +86,6 @@
"(is-unconditional cnd) checks whether cnd is unconditional, i.e. 0b1110."
(= cnd 0b1110))

(defun clear-base (reg)
"(clear-base reg) clears all of the register reg."
(set$ (alias-base-register reg) 0))

(defmacro setw (reg val)
"(set Wx V) sets a Wx register clearing the upper 32 bits."
(let ((res val))
(clear-base reg)
(set$ reg res)))
(set$ (alias-base-register reg) val))

0 comments on commit 0231a76

Please sign in to comment.