diff mbox

PATCH: Check ia32 in GCC tests

Message ID 20110710022218.GA6203@intel.com
State New
Headers show

Commit Message

H.J. Lu July 10, 2011, 2:22 a.m. UTC
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.

Comments

Mike Stump July 11, 2011, 6:48 a.m. UTC | #1
On Jul 9, 2011, at 7:22 PM, 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?

Ok.
diff mbox

Patch

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..5057dee 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"