Skip to content

Commit

Permalink
fixed AMD64 assembler Begin/End (saving callee saved registers)
Browse files Browse the repository at this point in the history
  • Loading branch information
krauthaufen committed Aug 2, 2022
1 parent 2ee5137 commit b48d893
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 5.2.7
* fixed AMD64 assembler Begin/End (saving callee saved registers)

### 5.2.6
- [PixImage.SystemDrawing] removed System.Drawing.Common upper version constraint
- [IO] BinaryReadingCoder: patch object reference after converter/proxy conversion (#77)
Expand Down
6 changes: 6 additions & 0 deletions src/Aardvark.Base.Runtime/Assembler/AMD64.fs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,13 @@ module AMD64 =
x.Mov(Register.Rbp, Register.Rsp, true)
stackOffset <- stackOffset - 8

for r in localConvention.calleeSaved do
x.Push r

member x.End() =
for i in localConvention.calleeSaved.Length - 1 .. -1 .. 0 do
x.Pop localConvention.calleeSaved.[i]

x.Leave()
stackOffset <- stackOffset - 8

Expand Down

0 comments on commit b48d893

Please sign in to comment.