[aarch64-port-dev ] Optimize pushes and pops

Andrew Haley aph at redhat.com
Mon May 12 18:42:56 UTC 2014


On 05/12/2014 05:33 PM, Andrew Haley wrote:
>   0x00007fffd10d1ff8: stp	x1, x2, [sp,#-48]!
>   0x00007fffd10d1ffc: stp	x3, x4, [sp,#16]
>   0x00007fffd10d2000: stp	x5, x6, [sp,#32]
> 
> and
> 
>   0x00007fffd10d202c: ldp	xscratch1, xmethod, [sp],#16
>   0x00007fffd10d2030: ldp	x1, x2, [sp]
>   0x00007fffd10d2034: ldp	x3, x4, [sp,#16]
>   0x00007fffd10d2038: ldp	x5, x6, [sp,#32]
>   0x00007fffd10d203c: add	sp, sp, #0x30

Oops.  That should be:

  0x00007fffd10d2030: ldp	x1, x2, [sp]
  0x00007fffd10d2034: ldp	x3, x4, [sp,#16]
  0x00007fffd10d2038: ldp	x5, x6, [sp,#32]
  0x00007fffd10d203c: add	sp, sp, #0x30

Andrew.



More information about the aarch64-port-dev mailing list