Re: [PATCH 05/10] addr32: Load TP into register for TLS_MODEL_LOCAL_EXEC modes in x32

2012-03-05 Thread Uros Bizjak
On Fri, Mar 2, 2012 at 9:56 PM, H.J. Lu wrote: > Since the 0x67 address prefix only zeros out the upper 32bits of the > (reg) part in address fs:(reg), we can't use fs:(reg) as memory operand > for x32 with Pmode == SImode.  We have to load the address into a > register first and use it as memory

[PATCH 05/10] addr32: Load TP into register for TLS_MODEL_LOCAL_EXEC modes in x32

2012-03-02 Thread H.J. Lu
Hi, Since the 0x67 address prefix only zeros out the upper 32bits of the (reg) part in address fs:(reg), we can't use fs:(reg) as memory operand for x32 with Pmode == SImode. We have to load the address into a register first and use it as memory operand. Tested on Linux/x86-64. OK for trunk? Th