From patchwork Sun Sep 18 11:42:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Rosen X-Patchwork-Id: 4159 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7F85123EFB for ; Sun, 18 Sep 2011 11:42:20 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 5FB42A18630 for ; Sun, 18 Sep 2011 11:42:20 +0000 (UTC) Received: by fxe23 with SMTP id 23so4339310fxe.11 for ; Sun, 18 Sep 2011 04:42:20 -0700 (PDT) Received: by 10.223.63.8 with SMTP id z8mr2999248fah.84.1316346140118; Sun, 18 Sep 2011 04:42:20 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.18.198 with SMTP id y6cs4420lad; Sun, 18 Sep 2011 04:42:19 -0700 (PDT) Received: by 10.150.14.6 with SMTP id 6mr1180161ybn.173.1316346138900; Sun, 18 Sep 2011 04:42:18 -0700 (PDT) Received: from mail-gy0-f178.google.com (mail-gy0-f178.google.com [209.85.160.178]) by mx.google.com with ESMTPS id r10si3648241ybi.34.2011.09.18.04.42.18 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Sep 2011 04:42:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.178 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) client-ip=209.85.160.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.178 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) smtp.mail=ira.rosen@linaro.org Received: by gyf1 with SMTP id 1so17339703gyf.37 for ; Sun, 18 Sep 2011 04:42:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.2.16 with SMTP id 16mr1240119ybb.333.1316346138283; Sun, 18 Sep 2011 04:42:18 -0700 (PDT) Received: by 10.151.100.9 with HTTP; Sun, 18 Sep 2011 04:42:18 -0700 (PDT) Date: Sun, 18 Sep 2011 14:42:18 +0300 Message-ID: Subject: [patch] Fix PR testsuite/50435 From: Ira Rosen To: gcc-patches@gcc.gnu.org Cc: Patch Tracking Hi, This patch adds an if-statement to avoid loop vectorization and fixes underscores around restrict in gcc.dg/vect/bb-slp-25.c. Tested by Dominique on x86_64-apple-darwin10 and on x86_64-suse-linux. Committed to trunk. Ira 2011-09-18 Dominique d'Humieres Ira Rosen PR testsuite/50435 * gcc.dg/vect/bb-slp-25.c: Add an if to avoid loop vectorization. Fix underscores around restrict. h /= 16; @@ -25,6 +25,8 @@ void foo (short * __restrict dst, short dst[7] += A*src[7] + src[7+stride]; dst += 8; src += 8; + if (dummy == 32) + abort (); } } @@ -41,7 +43,7 @@ int main (void) src[i] = i; } - foo (dst, src, N, 8); + foo (dst, src, N, 8, 0); for (i = 0; i < N/2; i++) { Index: testsuite/gcc.dg/vect/bb-slp-25.c =================================================================== --- testsuite/gcc.dg/vect/bb-slp-25.c (revision 178940) +++ testsuite/gcc.dg/vect/bb-slp-25.c (working copy) @@ -9,7 +9,7 @@ short src[N], dst[N]; -void foo (short * __restrict dst, short * __restrict src, int h, int stride) +void foo (short * __restrict__ dst, short * __restrict__ src, int h, int stride, int dummy) { int i;