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: 101258 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 2534CB6F8B for ; Tue, 21 Jun 2011 19:02:20 +1000 (EST) Received: (qmail 23293 invoked by alias); 21 Jun 2011 09:02:17 -0000 Received: (qmail 23053 invoked by uid 22791); 21 Jun 2011 09:02:15 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Jun 2011 09:02:01 +0000 Received: by pzk36 with SMTP id 36so4435006pzk.20 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 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 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 } } } */