On Mon, 17 Dec 2018, Hans-Peter Nilsson wrote: > On Mon, 17 Dec 2018, Wilco Dijkstra wrote: > > H-P: > > > So, changing from R18 to R11 for aarch64 seems right, as the > > > latter is call-clobbered and the former is call-saved IIUC. > > > > The AArch64 ABI defines x18 as platform specific: > > http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf > > On Linux it is call-clobbered, but it could be a fixed register on other > > platforms (eg. a thread-local pointer). I don't think it's possible to make > > it a callee-save. > > JFTR, in gcc, it's treated as call-saved, AFAICS, with no > special-casing (other than being STATIC_CHAIN_REGNUM, which > by itself has no other effect).
I take that back, My bad reading. Sorry for the noise. brgds, H-P