Skip to content

Commit

Permalink
Fixed Intrinsic.RegisterAssign.prettyST.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Mar 6, 2025
1 parent d4e0ce0 commit 750dc53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/main/scala/org/sireum/anvil/Intrinsic.scala
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ object Intrinsic {
val reg: String = if (isSP) "SP" else "DP"
value match {
case AST.IR.Exp.Int(_, v, _) => if (isInc) if (v < 0) st"$reg = $reg - ${-v}" else st"$reg = $reg + $v" else st"$reg = $v"
case _ => st"$reg = $reg + ${value.prettyST}"
case _ => if (isInc) st"$reg = $reg + ${value.prettyST}" else st"$reg = ${value.prettyST}"
}
}
}
Expand Down

0 comments on commit 750dc53

Please sign in to comment.