From patchwork Tue Jun 21 09:02:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Rosen X-Patchwork-Id: 2114 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 636E323E54 for ; Tue, 21 Jun 2011 09:02:03 +0000 (UTC) Received: from mail-vx0-f180.google.com (mail-vx0-f180.google.com [209.85.220.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2157CA18166 for ; Tue, 21 Jun 2011 09:02:03 +0000 (UTC) Received: by vxd7 with SMTP id 7so3318335vxd.11 for ; Tue, 21 Jun 2011 02:02:02 -0700 (PDT) Received: by 10.52.175.197 with SMTP id cc5mr4942730vdc.287.1308646922521; Tue, 21 Jun 2011 02:02:02 -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.52.183.130 with SMTP id em2cs53421vdc; Tue, 21 Jun 2011 02:02:02 -0700 (PDT) Received: by 10.101.200.1 with SMTP id c1mr6755228anq.63.1308646921893; Tue, 21 Jun 2011 02:02:01 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id f35si12168561anj.185.2011.06.21.02.02.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2011 02:02:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) smtp.mail=ira.rosen@linaro.org Received: by pzk2 with SMTP id 2so4930700pzk.37 for ; Tue, 21 Jun 2011 02:02:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.213.8 with SMTP id l8mr836657wfg.380.1308646920709; Tue, 21 Jun 2011 02:02:00 -0700 (PDT) Received: by 10.143.79.13 with HTTP; Tue, 21 Jun 2011 02:02:00 -0700 (PDT) Date: Tue, 21 Jun 2011 12:02:00 +0300 Message-ID: Subject: [patch] Fix PR testsuite/49443 From: Ira Rosen To: gcc-patches@gcc.gnu.org Cc: Patch Tracking Hi, The loops in gcc.dg/vect/vect-peel-3.c and vect-peel-4.c have memory accesses with different misalignment values that cannot all be aligned by peeling. Therefore, these tests are not supposed to get vectorized on vect_no_align targets. This patch xfails the vectorization for such cases. Tested on powerpc64-suse-linux and by Steve on IA64. Committed as obvious. Ira testsuite/ChangeLog: * gcc.dg/vect/vect-peel-3.c: Expect to fail on vect_no_align targets. * gcc.dg/vect/vect-peel-4.c: Likewise. /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" } } */ /* { dg-final { cleanup-tree-dump "vect" } } */ Index: testsuite/gcc.dg/vect/vect-peel-3.c =================================================================== --- testsuite/gcc.dg/vect/vect-peel-3.c (revision 175242) +++ testsuite/gcc.dg/vect/vect-peel-3.c (working copy) @@ -47,7 +47,7 @@ return main1 (); } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_align } } } */ /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail vect_no_align } } } */ -/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" } } */ +/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { xfail vect_no_align } } } */ /* { dg-final { cleanup-tree-dump "vect" } } */ Index: testsuite/gcc.dg/vect/vect-peel-4.c =================================================================== --- testsuite/gcc.dg/vect/vect-peel-4.c (revision 175242) +++ testsuite/gcc.dg/vect/vect-peel-4.c (working copy) @@ -44,7 +44,7 @@ return main1 (); } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_align } } } */ /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail vect_no_align } } } */