From patchwork Sun Jul 17 05:57:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ira Rosen X-Patchwork-Id: 2731 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 0159023F55 for ; Sun, 17 Jul 2011 05:57:59 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id BDB09A184F3 for ; Sun, 17 Jul 2011 05:57:59 +0000 (UTC) Received: by qwb8 with SMTP id 8so1626088qwb.11 for ; Sat, 16 Jul 2011 22:57:59 -0700 (PDT) Received: by 10.229.73.196 with SMTP id r4mr1580761qcj.266.1310882279137; Sat, 16 Jul 2011 22:57:59 -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.229.217.78 with SMTP id hl14cs26368qcb; Sat, 16 Jul 2011 22:57:58 -0700 (PDT) Received: by 10.68.54.234 with SMTP id m10mr6734561pbp.416.1310882277583; Sat, 16 Jul 2011 22:57:57 -0700 (PDT) Received: from mail-pv0-f178.google.com (mail-pv0-f178.google.com [74.125.83.178]) by mx.google.com with ESMTPS id j19si8796041wff.120.2011.07.16.22.57.56 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Jul 2011 22:57:56 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.178 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) client-ip=74.125.83.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.83.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 pvg7 with SMTP id 7so2678741pvg.37 for ; Sat, 16 Jul 2011 22:57:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.96.3 with SMTP id y3mr2319567wfl.395.1310882275958; Sat, 16 Jul 2011 22:57:55 -0700 (PDT) Received: by 10.143.62.16 with HTTP; Sat, 16 Jul 2011 22:57:55 -0700 (PDT) Date: Sun, 17 Jul 2011 08:57:55 +0300 Message-ID: Subject: [patch] Fix gcc.dg/vect/pr49038.c (was Re: [patch] Fix PR tree-optimization/49038) From: Ira Rosen To: Ulrich Weigand Cc: gcc-patches@gcc.gnu.org, Patch Tracking On 15 July 2011 15:56, Ulrich Weigand wrote: > Ira Rosen wrote: > >>       * gcc.dg/vect/pr49038.c: New test. > >> Index: testsuite/gcc.dg/vect/pr49038.c >> =================================================================== >> --- testsuite/gcc.dg/vect/pr49038.c   (revision 0) >> +++ testsuite/gcc.dg/vect/pr49038.c   (revision 0) >> @@ -0,0 +1,38 @@ >> +#include >> +#include >> + >> +#define COUNT 320 >> +#define MMAP_SIZE 0x10000 >> +#define ADDRESS 0x1122000000 >> +#define TYPE unsigned short > > This test fails on spu-elf, and presumably all other targets that > don't have mmap (or ) ... > > Can the test be restricted to those targets that actually support > that OS feature? I copied the list of targets from gcc.dg/20050826-1.c. Tested on x86_64-suse-linux. OK to apply? Thanks, Ira ChangeLog: * gcc.dg/vect/pr49038.c: Run only on targets that support mmap. #include > > Thanks, > Ulrich > > -- >  Dr. Ulrich Weigand >  GNU Toolchain for Linux on System z and Cell BE >  Ulrich.Weigand@de.ibm.com > Index: gcc.dg/vect/pr49038.c =================================================================== --- gcc.dg/vect/pr49038.c (revision 175681) +++ gcc.dg/vect/pr49038.c (working copy) @@ -1,3 +1,5 @@ +/* { dg-do run { target i?86-*-linux* x86_64-*-linux* ia64-*-linux* alpha*-*-linux* powerpc*-*-linux* s390*-*-linux* sparc*-*-linux* *-*-darwin* } } */ + #include