From patchwork Mon Jun 17 16:21:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Iyer, Balaji V" X-Patchwork-Id: 251916 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 19DDF2C0090 for ; Tue, 18 Jun 2013 02:21:52 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:content-type:mime-version; q=dns; s= default; b=a28ZkQaq4omiHDShvdEBx8TRikGH5Z7yHYbWxDtUp6mSEBbJzzNyL MC2qa6NryteyBHj1FEypDgSrUVinOfluxz+wpciyaha02qleslyP5r3V0PnIt1B5 NG52dVcHUo4nrQMlyscvbWfc1sSoa1xO7jf8hdJaUzWlEPcNVYV1oE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:content-type:mime-version; s= default; bh=hHWHq8P1a62glmejch74RU+a/Ns=; b=mS+1wHGact57MvPAV9Dz epivK0f00OPzgW7yM3azszptRI9TXCZxwPZZR2srCqGLes1hN/iEQF04FMuT3EQk hxxyElwpNTQfaFqiDI25WziVqHq573eArRERqQK2uE5Y4+xKoHLQtdE8UdAIbUVP sCocd300HDmFfVe4RD8ARro= Received: (qmail 6886 invoked by alias); 17 Jun 2013 16:21:40 -0000 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 Received: (qmail 6726 invoked by uid 89); 17 Jun 2013 16:21:37 -0000 X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, RP_MATCHES_RCVD, SPF_PASS, TW_CP autolearn=ham version=3.3.1 Received: from mga09.intel.com (HELO mga09.intel.com) (134.134.136.24) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 17 Jun 2013 16:21:36 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 17 Jun 2013 09:19:17 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.19.9.34]) by orsmga002.jf.intel.com with ESMTP; 17 Jun 2013 09:21:34 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.19.17.221) by FMSMSX103.amr.corp.intel.com (10.19.9.34) with Microsoft SMTP Server (TLS) id 14.3.123.3; Mon, 17 Jun 2013 09:21:34 -0700 Received: from fmsmsx101.amr.corp.intel.com ([169.254.1.114]) by fmsmsx152.amr.corp.intel.com ([169.254.6.165]) with mapi id 14.03.0123.003; Mon, 17 Jun 2013 09:21:34 -0700 From: "Iyer, Balaji V" To: "gcc-patches@gcc.gnu.org" Subject: [PATCH] Make one of array notation test a run test Date: Mon, 17 Jun 2013 16:21:33 +0000 Message-ID: MIME-Version: 1.0 X-Virus-Found: No Hello Everyone, This patch will make one of the array notation tests a runnable one instead of a compile only. I have also changed the return values from just '1' to distinct values so that it is easier to debug. This patch is committed as obvious. Here is the ChangeLog entry: +2013-06-17 Balaji V. Iyer + + * c-c++-common/cilk-plus/AN/array_test1.c: Make this an execution test. + Also changed the returns from error as distinct values so that it is + easier to debug. + Thanks, Balaji V. Iyer. Index: gcc/testsuite/ChangeLog =================================================================== --- gcc/testsuite/ChangeLog (revision 200149) +++ gcc/testsuite/ChangeLog (working copy) @@ -1,3 +1,9 @@ +2013-06-17 Balaji V. Iyer + + * c-c++-common/cilk-plus/AN/array_test1.c: Make this an execution test. + Also changed the returns from error as distinct values so that it is + easier to debug. + 2013-06-17 Kyrylo Tkachov * gcc.target/arm/unaligned-memcpy-2.c (dest): Initialize to Index: gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c =================================================================== --- gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c (revision 200148) +++ gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do run } */ /* { dg-options "-fcilkplus" } */ #include @@ -47,7 +47,7 @@ array[x:y:z] = 505; for (ii = x; ii < 10; ii += z) if (array[ii] != 505) - return 2; + return 4; x = atoi(argv[1]); z = (10-atoi(argv[1]))/atoi(argv[1]); @@ -57,7 +57,7 @@ for (ii = x; ii < 10; ii += z) if (array[ii] != 25) - return 1; + return 5; x = atoi(argv[1]); z = (10-atoi(argv[1]))/atoi(argv[1]); y = 10-atoi(argv[1]); @@ -66,19 +66,19 @@ 1400; for (ii = x; ii < 10; ii += z) if (array[ii] != 1400) - return 1; + return 6; array[atoi("5"):5:1] = 5555; for (ii = atoi ("5"); ii < 10; ii++) if (array[ii] != 5555) - return 2; + return 7; array[atoi("5"):atoi("5"):atoi("1")] = 9999; for (ii = atoi ("5"); ii < (atoi ("5") + atoi ("5")); ii += atoi ("1")) if (array[ii] != 9999) - return 3; + return 8; return 0; }