From patchwork Thu May 31 11:22:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 923327 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-478828-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="DQKYyQCu"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40xQ6J37Msz9ry1 for ; Thu, 31 May 2018 21:22:14 +1000 (AEST) 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:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=AJWQ4FUO3/jrvYJV ECIjBt9QUdt7eUrmjFUpsmtYI8huRiertfRgqL+QVP1hwfRYHY+HtsF7NAR9m/Pg UaFNvbtSASd3Y84RwVIchlZ5L0h5L3gUfJ7Bwa521ErfAbGOkg4mYgFg5gvfFNWi WpbZxkl+LlJKADNsO8ZXE4qtSmI= 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:mime-version:content-type :content-transfer-encoding; s=default; bh=z0MpIn8qQg3bmsXiP6j1YL 0DfjY=; b=DQKYyQCuUInVud5nc6T1/r9DwFINSwM0DHriS2wAQvdUyJ+Def3nTq OxhW/EyglwHzwvxCYvvCO14yVS2YckI1WjKl/sfYvhNe1sqeaJAJhMdV9eRzkvIP 3m08BY0llr8r8Wd/MRPyUKynGG/h5cVx5grnJzeJAJfpFU0Ahi8Ww= Received: (qmail 114826 invoked by alias); 31 May 2018 11:22:08 -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 114811 invoked by uid 89); 31 May 2018 11:22:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 31 May 2018 11:22:05 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 58EF381399 for ; Thu, 31 May 2018 13:22:03 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4FK-B9PdeKtn for ; Thu, 31 May 2018 13:22:03 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 3842481353 for ; Thu, 31 May 2018 13:22:03 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [testsuite] Run more gcc.dg/store_merging_*.c tests Date: Thu, 31 May 2018 13:22:00 +0200 Message-ID: <9151549.XcvHfQ3ZfO@polaris> MIME-Version: 1.0 There is a handful of gcc.dg/store_merging_*.c tests in the testsuite with both a main procedure doing sanity checks and a dg-do compile directive. Tested on x86-64/Linux, applied on the mainline and 8 branch as obvious. 2018-05-31 Eric Botcazou * gcc.dg/store_merging_10.c: Turn dg-do compile into dg-do run. * gcc.dg/store_merging_11.c: Likewise. * gcc.dg/store_merging_13.c: Likewise. * gcc.dg/store_merging_14.c: Likewise. * gcc.dg/store_merging_15.c: Likewise. * gcc.dg/store_merging_16.c: Likewise. Remove local variable. Index: gcc.dg/store_merging_10.c =================================================================== --- gcc.dg/store_merging_10.c (revision 260913) +++ gcc.dg/store_merging_10.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do run } */ /* { dg-require-effective-target store_merge } */ /* { dg-options "-O2 -fdump-tree-store-merging" } */ Index: gcc.dg/store_merging_11.c =================================================================== --- gcc.dg/store_merging_11.c (revision 260913) +++ gcc.dg/store_merging_11.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do run } */ /* { dg-require-effective-target store_merge } */ /* { dg-options "-O2 -fdump-tree-store-merging" } */ Index: gcc.dg/store_merging_13.c =================================================================== --- gcc.dg/store_merging_13.c (revision 260913) +++ gcc.dg/store_merging_13.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do run } */ /* { dg-require-effective-target store_merge } */ /* { dg-options "-O2 -fdump-tree-store-merging" } */ Index: gcc.dg/store_merging_14.c =================================================================== --- gcc.dg/store_merging_14.c (revision 260913) +++ gcc.dg/store_merging_14.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do run } */ /* { dg-require-effective-target store_merge } */ /* { dg-options "-O2 -fdump-tree-store-merging" } */ Index: gcc.dg/store_merging_15.c =================================================================== --- gcc.dg/store_merging_15.c (revision 260913) +++ gcc.dg/store_merging_15.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do run } */ /* { dg-require-effective-target store_merge } */ /* { dg-options "-O2 -fdump-tree-store-merging" } */ Index: gcc.dg/store_merging_16.c =================================================================== --- gcc.dg/store_merging_16.c (revision 260913) +++ gcc.dg/store_merging_16.c (working copy) @@ -1,6 +1,6 @@ /* Only test on some 64-bit targets which do have bswap{si,di}2 patterns and are either big or little endian (not pdp endian). */ -/* { dg-do compile { target { lp64 && { i?86-*-* x86_64-*-* powerpc*-*-* aarch64*-*-* } } } } */ +/* { dg-do run { target { lp64 && { i?86-*-* x86_64-*-* powerpc*-*-* aarch64*-*-* } } } } */ /* { dg-require-effective-target store_merge } */ /* { dg-options "-O2 -fdump-tree-store-merging" } */ @@ -114,7 +114,7 @@ main () { unsigned char a[8]; int i; - struct S b, c, d; + struct S c, d; f1 (a, 0x0102030405060708ULL); for (i = 0; i < 8; ++i) if (a[i] != 8 - i)