Re: PATCH: Support -mx32 in GCC tests

2011-07-08 Thread Uros Bizjak
On Fri, Jul 8, 2011 at 1:03 AM, H.J. Lu wrote: >> Here is the updated patch.  I will wait for Uros's comments. >> > > I attached the wrong file.  Here is the updated patch. --- a/gcc/testsuite/g++.dg/abi/bitfield3.C +++ b/gcc/testsuite/g++.dg/abi/bitfield3.C @@ -4,7 +4,7 @@ // Cygwin and mingw3

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread H.J. Lu
On Thu, Jul 7, 2011 at 2:12 PM, H.J. Lu wrote: > On Thu, Jul 7, 2011 at 1:57 PM, H.J. Lu wrote: >> On Thu, Jul 7, 2011 at 1:56 PM, H.J. Lu wrote: >> >>> > -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! > spu-*-* } } } } */ > +/* { dg-do compile { target { {

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread Mike Stump
On Jul 7, 2011, at 3:20 PM, H.J. Lu wrote: > -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { > ! spu-*-* } } } } */ > +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } && > { ! spu-*-* } } && { ! { { i?86-*-* x86_64-*-* } && x32 } } } } } */ > -/* { dg-do c

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread H.J. Lu
On Thu, Jul 7, 2011 at 2:58 PM, Mike Stump wrote: > On Jul 7, 2011, at 2:12 PM, H.J. Lu wrote: >> Here is the updated patch.  I will wait for Uros's comments. > > Please remove ChangeLog for lower-subreg-1.c and pr44194-1.c, as I don't > think those files are modified anymore. They are modified.

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread Mike Stump
On Jul 7, 2011, at 2:12 PM, H.J. Lu wrote: > Here is the updated patch. I will wait for Uros's comments. Please remove ChangeLog for lower-subreg-1.c and pr44194-1.c, as I don't think those files are modified anymore.

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread H.J. Lu
On Thu, Jul 7, 2011 at 1:57 PM, H.J. Lu wrote: > On Thu, Jul 7, 2011 at 1:56 PM, H.J. Lu wrote: > >> -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } } } */ +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-*

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread H.J. Lu
On Thu, Jul 7, 2011 at 1:56 PM, H.J. Lu wrote: > >>> -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! >>> spu-*-* } } } } */ >>> +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } && { ! >>> spu-*-* } } && { ! x32 } } } } */ >> >> >> Hum, I worry about x

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread H.J. Lu
On Thu, Jul 7, 2011 at 1:27 PM, Mike Stump wrote: > On Jul 7, 2011, at 11:26 AM, H.J. Lu wrote: >> -/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* } >> || { powerpc*-*-* && ilp32 } } } } */ >> +/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* }

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread Mike Stump
On Jul 7, 2011, at 11:26 AM, H.J. Lu wrote: > -/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* } > || { powerpc*-*-* && ilp32 } } } } */ > +/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* } > || { powerpc*-*-* && ia32 } } } } */ powerpc doesn't

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread H.J. Lu
On Thu, Jul 7, 2011 at 10:57 AM, Mike Stump wrote: > On Jul 7, 2011, at 10:29 AM, H.J. Lu wrote: >> On Linux/x86-64, when we pass >> >> RUNTESTFLAGS="--target_board='unix{-mx32}'" >> >> to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86 >> instructions.  This patch adds ia32 and

Re: PATCH: Support -mx32 in GCC tests

2011-07-07 Thread Mike Stump
On Jul 7, 2011, at 10:29 AM, H.J. Lu wrote: > On Linux/x86-64, when we pass > > RUNTESTFLAGS="--target_board='unix{-mx32}'" > > to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86 > instructions. This patch adds ia32 and x32 effetive targets. OK for > trunk? Ok.

PATCH: Support -mx32 in GCC tests

2011-07-07 Thread H.J. Lu
Hi, On Linux/x86-64, when we pass RUNTESTFLAGS="--target_board='unix{-mx32}'" to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86 instructions. This patch adds ia32 and x32 effetive targets. OK for trunk? Thanks. H.J. --- 2011-07-07 H.J. Lu * lib/target-support