> adrp, x0, dest
> add x0, x0, #:lo12:dest

Thanks! Thats the syntax I wanted.

The use case is I want to benchmark this as a way of generating far
calls, for use within the JIT for when code cache becomes > 128m.

At the moment we generate trampolines

tramp:
  ldr Xn, here
  br Xn
here
  .dword dest

and then do

  bl dest

but if on relocation in the code cache it doen't reach then relocate this to

  bl tramp

but I think it may be better to simply always generate

  adrp Xn, dest
  add Xn, Xn, :lo12:dest
  blr Xn

Regards,
Ed.
_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to