Re: [PATCHv2/AARCH64 2/3] Fix TLS for ILP32.

2015-02-20 Thread Andrew Pinski
On Fri, Feb 20, 2015 at 5:35 AM, Marcus Shawcroft wrote: >> case SYMBOL_SMALL_GOTTPREL: >>{ >> - rtx tmp_reg = gen_reg_rtx (Pmode); >> + /* In ILP32, the mode of dest can be either SImode or DImode, >> + while the got entry is always of SImode size. The mode of >

Re: [PATCHv2/AARCH64 2/3] Fix TLS for ILP32.

2015-02-20 Thread Marcus Shawcroft
> case SYMBOL_SMALL_GOTTPREL: >{ > - rtx tmp_reg = gen_reg_rtx (Pmode); > + /* In ILP32, the mode of dest can be either SImode or DImode, > + while the got entry is always of SImode size. The mode of > + dest depends on how dest is used: if dest is assign

Re: [PATCHv2/AARCH64 2/3] Fix TLS for ILP32.

2014-02-27 Thread Marcus Shawcroft
On 26 February 2014 02:25, Andrew Pinski wrote: > Hi, > With ILP32, some simple usage of TLS variables causes an unrecognizable > instruction due to needing to use SImode for loading pointers from memory. > This fixes the three (tlsie_small, tlsle_small, tlsdesc_small) patterns to > support SImo

Re: [PATCHv2/AARCH64 2/3] Fix TLS for ILP32.

2014-02-27 Thread Yufeng Zhang
Hi, On 02/26/14 02:25, Andrew Pinski wrote: Hi, With ILP32, some simple usage of TLS variables causes an unrecognizable instruction due to needing to use SImode for loading pointers from memory. This fixes the three (tlsie_small, tlsle_small, tlsdesc_small) patterns to support SImode for poin