From patchwork Tue Apr 19 16:28:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 1097 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:49:07 -0000 Delivered-To: patches@linaro.org Received: by 10.224.67.148 with SMTP id r20cs77664qai; Tue, 19 Apr 2011 09:28:50 -0700 (PDT) Received: by 10.227.131.9 with SMTP id v9mr1163679wbs.6.1303230529941; Tue, 19 Apr 2011 09:28:49 -0700 (PDT) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id d3si128819wbe.135.2011.04.19.09.28.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Apr 2011 09:28:48 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of richard.sandiford@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of richard.sandiford@linaro.org) smtp.mail=richard.sandiford@linaro.org Received: by wwc33 with SMTP id 33so7040512wwc.31 for ; Tue, 19 Apr 2011 09:28:48 -0700 (PDT) Received: by 10.216.152.170 with SMTP id d42mr1678276wek.39.1303230528364; Tue, 19 Apr 2011 09:28:48 -0700 (PDT) Received: from richards-thinkpad (gbibp9ph1--blueice2n1.emea.ibm.com [195.212.29.75]) by mx.google.com with ESMTPS id a50sm36274wer.18.2011.04.19.09.28.47 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Apr 2011 09:28:47 -0700 (PDT) From: Richard Sandiford To: patches@linaro.org Mail-Followup-To: patches@linaro.org, richard.sandiford@linaro.org Subject: [Richard Sandiford] Repeat main vect.exp tests with -flto Date: Tue, 19 Apr 2011 17:28:45 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Disposition: inline This patchs makes us run the main C vect.exp tests twice, once with the normal optimisation options and once with -flto added. It's a simple way of covering the LTO streaming of the new "internal" functions, but it should be useful more generally. The testsuite runs quickly (even cross), so an extra pass through doesn't have much overhead. Tested on x86_64-linux-gnu and arm-linux-gnueabi. OK to install? Richard gcc/testsuite/ * gcc.dg/vect/vect.exp: Run the main tests twice, one with -flto and once without. Index: gcc/testsuite/gcc.dg/vect/vect.exp =================================================================== --- gcc/testsuite/gcc.dg/vect/vect.exp 2011-04-18 08:47:17.000000000 +0100 +++ gcc/testsuite/gcc.dg/vect/vect.exp 2011-04-18 13:22:53.000000000 +0100 @@ -75,15 +75,16 @@ lappend DEFAULT_VECTCFLAGS "-fdump-tree- lappend VECT_SLP_CFLAGS "-fdump-tree-slp-details" # Main loop. -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/pr*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vect-*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/slp-*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \ - "" $VECT_SLP_CFLAGS - +foreach flags {"" "-flto"} { + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/pr*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vect-*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/slp-*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \ + $flags $VECT_SLP_CFLAGS +} #### Tests with special options global SAVED_DEFAULT_VECTCFLAGS