This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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/RFA] SH TLS support


Joern Rennecke <joern dot rennecke at superh dot com> wrote:
> What does LE stand for?  How does such an IE->LE transition look like?

LE looks like an address calculation for gbr + offset access:

	mov.l   .L1, rN
	stc     gbr, rM
	add     rM, rN
        ...
	(constant pool)
.L1:    .long   x at TPOFF

and an IE->LE transition looks like:

	mov.l   L1, r0		->	mov.l   .L1, r0
	stc     gbr, r1		->	stc     gbr, r1
	mov.l   @(r0,r12), r0	->	add	r1, r0
	add    r1, r0		->	nop
	...
	(constant pool)
L1:      .long   x at GOTTPOFF	->	.long   x at TPOFF

Regards,
	kaz


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