PATCH: Check ia32 in GCC tests

H.J. Lu hongjiu.lu@intel.com
Sun Jul 10 10:02:00 GMT 2011


On Sat, Jul 09, 2011 at 07:22:18PM -0700, H.J. Lu wrote:
> On Thu, Jul 07, 2011 at 10:29:53AM -0700, H.J. Lu wrote:
> > 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?
> > 
> 
> Here is a followup patch to use ia32 effetive target.  OK for trunk?
> 
> Thanks.
> 
> 
> H.J.
> --
> 2011-07-09  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp: Check
> 	ia32.
> 	* go.test/go-test.exp (go-set-goarch): Likewise.
> 

A small update.

H.J.
----
2011-07-09  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp: Check
	ia32.
	* go.test/go-test.exp (go-set-goarch): Likewise.

diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
index a11aa3b..1a22e7d 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
@@ -22,7 +22,7 @@ load_lib gcc-dg.exp
 
 # Exit immediately if this isn't a x86 target.
 if { (![istarget x86_64-*-*] && ![istarget i?86-*-*])
-     || (![is-effective-target x32] && ![is-effective-target lp64]) } then {
+     || [is-effective-target ia32] } then {
   return
 }
 
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index f0285a2..f5f2e60 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -134,7 +134,7 @@ proc go-set-goarch { } {
 	}
 	"i?86-*-*" -
 	"x86_64-*-*" {
-	    if [check_effective_target_ilp32] {
+	    if [check_effective_target_ia32] {
 		set goarch "386"
 	    } else {
 		set goarch "amd64"



More information about the Gcc-patches mailing list