This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Check ia32 in GCC tests
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org, Uros Bizjak <ubizjak at gmail dot com>, mikestump at comcast dot net
- Date: Sat, 9 Jul 2011 19:25:27 -0700
- Subject: Re: PATCH: Check ia32 in GCC tests
- References: <20110707172953.GA6453@intel.com> <20110710022218.GA6203@intel.com>
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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"