We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b29fd16 commit bdbd3ecCopy full SHA for bdbd3ec
1 file changed
langs/mug/compile-ops.rkt
@@ -143,11 +143,12 @@
143
(Sar rdx 1)
144
(Add rdx 1)
145
(Sal rdx 3) ; #bytes = 8*#words
146
+ (Mov r15 rbx) ; save what will be rax in non-volatile register
147
+ (Add rbx rdx) ; increment before rdx is destroyed
148
pad-stack
149
(Call 'memcpy)
150
unpad-stack
- (Mov rax rbx)
- (Add rbx rdx)))
151
+ (Mov rax r15)))
152
153
;; Op2 -> Asm
154
(define (compile-op2 p)
0 commit comments