Merge commit 'dd5d4a0e1e3a30a254d1a57ecbdcedf230c6014b'

* commit 'dd5d4a0e1e3a30a254d1a57ecbdcedf230c6014b':
  checkasm: aarch64: Don't clobber x29 in checkasm_stack_clobber

Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2017-03-23 18:31:36 -03:00
commit 0d34473d8e
1 changed files with 2 additions and 2 deletions

View File

@ -55,13 +55,13 @@ endconst
#define CLOBBER_STACK ((8*MAX_ARGS + 15) & ~15) #define CLOBBER_STACK ((8*MAX_ARGS + 15) & ~15)
function checkasm_stack_clobber, export=1 function checkasm_stack_clobber, export=1
mov x29, sp mov x3, sp
mov x2, #CLOBBER_STACK mov x2, #CLOBBER_STACK
1: 1:
stp x0, x1, [sp, #-16]! stp x0, x1, [sp, #-16]!
subs x2, x2, #16 subs x2, x2, #16
b.gt 1b b.gt 1b
mov sp, x29 mov sp, x3
ret ret
endfunc endfunc