From patchwork Sun Jul 10 02:25:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 104043 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 7CCC21007D1 for ; Sun, 10 Jul 2011 12:25:42 +1000 (EST) Received: (qmail 13663 invoked by alias); 10 Jul 2011 02:25:39 -0000 Received: (qmail 13649 invoked by uid 22791); 10 Jul 2011 02:25:38 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL, BAYES_50, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga03.intel.com (HELO mga03.intel.com) (143.182.124.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 10 Jul 2011 02:25:23 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 09 Jul 2011 19:25:23 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by azsmga001.ch.intel.com with ESMTP; 09 Jul 2011 19:25:22 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 57903C02E3; Sat, 9 Jul 2011 19:25:27 -0700 (PDT) Date: Sat, 9 Jul 2011 19:25:27 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org, Uros Bizjak , mikestump@comcast.net Subject: Re: PATCH: Check ia32 in GCC tests Message-ID: <20110710022527.GA6246@intel.com> Reply-To: "H.J. Lu" References: <20110707172953.GA6453@intel.com> <20110710022218.GA6203@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110710022218.GA6203@intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 > > * 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 * 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"