checkasm: aarch64: Don't clobber x29 in checkasm_stack_clobber
authorMartin Storsjö <martin@martin.st>
Tue, 18 Oct 2016 10:48:56 +0000 (13:48 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 18 Oct 2016 13:17:12 +0000 (16:17 +0300)
commitdd5d4a0e1e3a30a254d1a57ecbdcedf230c6014b
treef46449808602b3c3bc7dd886e1c1a8c935f22812
parent7911186ed616ae81dd8617d6d0e8b08c818db9d8
checkasm: aarch64: Don't clobber x29 in checkasm_stack_clobber

x29 (FP) is a callee saved register and should be restored on
return. Instead of backing up x29 and restoring it here, back up
sp in a register that we are allowed to overwrite.

This fixes crashes in checkasm on aarch64 since f1b3e1313851.
For some reason, gcc builds didn't crash, but clang builds do.

Signed-off-by: Martin Storsjö <martin@martin.st>
tests/checkasm/aarch64/checkasm.S