Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-29 Thread H.J. Lu
On Thu, Jul 28, 2011 at 9:00 AM, H.J. Lu wrote: > On Thu, Jul 28, 2011 at 8:59 AM, H.J. Lu wrote: >> On Thu, Jul 28, 2011 at 7:59 AM, Uros Bizjak wrote: >>> On Thu, Jul 28, 2011 at 4:47 PM, H.J. Lu wrote: >>> > In x32, thread pointer is 32bit and choice of segment register for the >

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-29 Thread H.J. Lu
On Thu, Jul 28, 2011 at 11:31 AM, Uros Bizjak wrote: > On Thu, Jul 28, 2011 at 8:30 PM, H.J. Lu wrote: > >> TP is 32bit in x32  For load_tp_x32, we load SImode value and >> zero-extend to DImode. For add_tp_x32, we are adding SImode >> value.  We can't pretend TP is 64bit.  load_tp_x3

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-29 Thread Uros Bizjak
On Thu, Jul 28, 2011 at 3:24 PM, H.J. Lu wrote: In x32, thread pointer is 32bit and choice of segment register for the thread base ptr load should be based on TARGET_64BIT.  This patch implements it.  OK for trunk? >>> >>> -ENOTESTCASE. >>> >> >> There is no standalone testcase.  T

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 4:25 PM, H.J. Lu wrote: > On Thu, Jul 28, 2011 at 3:46 PM, H.J. Lu wrote: >> On Thu, Jul 28, 2011 at 3:40 PM, Uros Bizjak wrote: >>> On Fri, Jul 29, 2011 at 12:28 AM, H.J. Lu wrote: >>> TP is 32bit in x32  For load_tp_x32, we load SImode value and >>

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 3:46 PM, H.J. Lu wrote: > On Thu, Jul 28, 2011 at 3:40 PM, Uros Bizjak wrote: >> On Fri, Jul 29, 2011 at 12:28 AM, H.J. Lu wrote: >> >>> TP is 32bit in x32  For load_tp_x32, we load SImode value and >>> zero-extend to DImode. For add_tp_x32, we are adding

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 3:40 PM, Uros Bizjak wrote: > On Fri, Jul 29, 2011 at 12:28 AM, H.J. Lu wrote: > >> TP is 32bit in x32  For load_tp_x32, we load SImode value and >> zero-extend to DImode. For add_tp_x32, we are adding SImode >> value.  We can't pretend TP is 64bit.

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread Uros Bizjak
On Fri, Jul 29, 2011 at 12:28 AM, H.J. Lu wrote: > TP is 32bit in x32  For load_tp_x32, we load SImode value and > zero-extend to DImode. For add_tp_x32, we are adding SImode > value.  We can't pretend TP is 64bit.  load_tp_x32 and add_tp_x32 > must take SImode TP.

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 3:03 PM, Uros Bizjak wrote: > On Thu, Jul 28, 2011 at 10:15 PM, H.J. Lu wrote: > TP is 32bit in x32  For load_tp_x32, we load SImode value and zero-extend to DImode. For add_tp_x32, we are adding SImode value.  We can't pretend TP is 64bit.  load

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread Uros Bizjak
On Thu, Jul 28, 2011 at 10:15 PM, H.J. Lu wrote: >>> TP is 32bit in x32  For load_tp_x32, we load SImode value and >>> zero-extend to DImode. For add_tp_x32, we are adding SImode >>> value.  We can't pretend TP is 64bit.  load_tp_x32 and add_tp_x32 >>> must take SImode TP. > Here

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread Uros Bizjak
On Thu, Jul 28, 2011 at 8:30 PM, H.J. Lu wrote: > TP is 32bit in x32  For load_tp_x32, we load SImode value and > zero-extend to DImode. For add_tp_x32, we are adding SImode > value.  We can't pretend TP is 64bit.  load_tp_x32 and add_tp_x32 > must take SImode TP. >

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 11:21 AM, Uros Bizjak wrote: > On Thu, Jul 28, 2011 at 8:03 PM, H.J. Lu wrote: > >>> So, instead of huge complications with new mode iterator, just >>> introduce two new patterns that will shadow existing ones for >>> TARGET_X32. >>> >>> Like in attache

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread Uros Bizjak
On Thu, Jul 28, 2011 at 8:03 PM, H.J. Lu wrote: >> So, instead of huge complications with new mode iterator, just >> introduce two new patterns that will shadow existing ones for >> TARGET_X32. >> >> Like in attached (untested) patch. >> > > I tried the following p

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 8:59 AM, H.J. Lu wrote: > On Thu, Jul 28, 2011 at 7:59 AM, Uros Bizjak wrote: >> On Thu, Jul 28, 2011 at 4:47 PM, H.J. Lu wrote: >> In x32, thread pointer is 32bit and choice of segment register for the thread base ptr load should be based on TARGET_64BI

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 7:59 AM, Uros Bizjak wrote: > On Thu, Jul 28, 2011 at 4:47 PM, H.J. Lu wrote: > >>> In x32, thread pointer is 32bit and choice of segment register for the >>> thread base ptr load should be based on TARGET_64BIT.  This patch >>> implements it.  OK for trunk? >>

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread Uros Bizjak
On Thu, Jul 28, 2011 at 4:47 PM, H.J. Lu wrote: >> In x32, thread pointer is 32bit and choice of segment register for the >> thread base ptr load should be based on TARGET_64BIT.  This patch >> implements it.  OK for trunk? > > -ENOTESTCASE. > There is no standal

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 6:40 AM, Uros Bizjak wrote: > On Thu, Jul 28, 2011 at 3:24 PM, H.J. Lu wrote: > > In x32, thread pointer is 32bit and choice of segment register for the > thread base ptr load should be based on TARGET_64BIT.  This patch > implements it.  OK for trunk? >>>

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 6:40 AM, Uros Bizjak wrote: > On Thu, Jul 28, 2011 at 3:24 PM, H.J. Lu wrote: > > In x32, thread pointer is 32bit and choice of segment register for the > thread base ptr load should be based on TARGET_64BIT.  This patch > implements it.  OK for trunk? >>>

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 6:08 AM, H.J. Lu wrote: > On Thu, Jul 28, 2011 at 12:45 AM, Uros Bizjak wrote: >> On Thu, Jul 28, 2011 at 5:11 AM, H.J. Lu wrote: >> >>> In x32, thread pointer is 32bit and choice of segment register for the >>> thread base ptr load should be based on TARGET_64BIT.  This

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 12:45 AM, Uros Bizjak wrote: > On Thu, Jul 28, 2011 at 5:11 AM, H.J. Lu wrote: > >> In x32, thread pointer is 32bit and choice of segment register for the >> thread base ptr load should be based on TARGET_64BIT.  This patch >> implements it.  OK for trunk? > > -ENOTESTCASE

Re: PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-28 Thread Uros Bizjak
On Thu, Jul 28, 2011 at 5:11 AM, H.J. Lu wrote: > In x32, thread pointer is 32bit and choice of segment register for the > thread base ptr load should be based on TARGET_64BIT.  This patch > implements it.  OK for trunk? -ENOTESTCASE. Uros.

PATCH: PR target/47715: [x32] Use SImode for thread pointer

2011-07-27 Thread H.J. Lu
Hi, In x32, thread pointer is 32bit and choice of segment register for the thread base ptr load should be based on TARGET_64BIT. This patch implements it. OK for trunk? Thanks. H.J. --- 2011-07-27 H.J. Lu PR target/47715 * config/i386/i386.c (get_thread_pointer): Use ptr_m