This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [AARCH64]: Pointer mangling support for Aarch64


On 12/26/2013 11:48 PM, Venkataramanan Kumar wrote:
> +/* Load or store to/from a pc-relative EXPR into/from R, using T.  */
> +#define LDST_PCREL(OP, R, T, EXPR)\
> +	adrp	T, EXPR;	  \
> +	add	T, T, #:lo12:EXPR;\
> +	OP	R, [T];

Is T supposed to be live after the macro?  Otherwise the whole point of the
12-bit offset is that it can be used inside the memory operation offset.

As you in fact do with the LDST_GLOBAL macro just below.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]