From patchwork Thu Sep 2 17:02:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 63510 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 3E078B70FB for ; Fri, 3 Sep 2010 03:03:12 +1000 (EST) Received: (qmail 13594 invoked by alias); 2 Sep 2010 17:03:05 -0000 Received: (qmail 13528 invoked by uid 22791); 2 Sep 2010 17:03:03 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from g5t0008.atlanta.hp.com (HELO g5t0008.atlanta.hp.com) (15.192.0.45) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Sep 2010 17:02:58 +0000 Received: from g5t0030.atlanta.hp.com (g5t0030.atlanta.hp.com [16.228.8.142]) by g5t0008.atlanta.hp.com (Postfix) with ESMTP id D64E5244D0 for ; Thu, 2 Sep 2010 17:02:56 +0000 (UTC) Received: from lucas.cup.hp.com (lucas.cup.hp.com [15.244.97.116]) by g5t0030.atlanta.hp.com (Postfix) with ESMTP id 823AB1400C for ; Thu, 2 Sep 2010 17:02:56 +0000 (UTC) Received: (from sje@localhost) by lucas.cup.hp.com (8.11.1 (PHNE_35485)/8.11.1) id o82H2tg20779 for gcc-patches@gcc.gnu.org; Thu, 2 Sep 2010 10:02:55 -0700 (PDT) Date: Thu, 2 Sep 2010 10:02:55 -0700 (PDT) From: Steve Ellcey Message-Id: <201009021702.o82H2tg20779@lucas.cup.hp.com> To: gcc-patches@gcc.gnu.org Subject: [patch, testsuite, vector] Patch for gcc.dg/vect/vect-peel-[34].c Reply-to: sje@cup.hp.com Mime-Version: 1.0 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 I will check this patch in as obvious if no one objects. These tests are trying to vectorize an unaligned access so they need to have an XFAIL for platforms where that isn't supported and the code isn't vectorized. Tested on IA64 HP-UX and Linux. Steve Ellcey sje@cup.hp.com 2010-09-02 Steve Ellcey * gcc.dg/vect/vect-peel-3.c: XFAIL if vect_no_align. * gcc.dg/vect/vect-peel-4.c: Ditto. Index: gcc.dg/vect/vect-peel-3.c =================================================================== --- gcc.dg/vect/vect-peel-3.c (revision 163437) +++ gcc.dg/vect/vect-peel-3.c (working copy) @@ -50,6 +50,6 @@ int main (void) } /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" } } */ -/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" } } */ +/* { 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 { cleanup-tree-dump "vect" } } */ Index: gcc.dg/vect/vect-peel-4.c =================================================================== --- gcc.dg/vect/vect-peel-4.c (revision 163579) +++ gcc.dg/vect/vect-peel-4.c (working copy) @@ -42,6 +42,6 @@ int main (void) } /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" } } */ -/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" } } */ +/* { 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" 0 "vect" } } */ /* { dg-final { cleanup-tree-dump "vect" } } */