From patchwork Thu Jul 4 16:17:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Shawcroft X-Patchwork-Id: 256961 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 5E5432C0077 for ; Fri, 5 Jul 2013 02:17:27 +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 :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=UKD3WWV9uu7uFg/LBp/2MjDmvL9w1odHoPIO5/RwlKB UvUcnqUltZflOZOnSOz+HG6UbLv/AAphY3W8+z2Ayaprb3QmQQWPUYElOuDl6DWz bFph4lZzzTevL+QV6FWUkzErLfz2KGC6NJtO/zd7gonNFIlynHkGzYhr3m0WEz0g = 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 :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=v20WS8Rv6WF4t+gE3KN4OE04GII=; b=VcLSbbsOmxmjh9cDr TOVqUNgSBNmIgKVxDsL1Vywj9Yl3IEsb5ktI/rDAI5Q1XTWb392LsrFSCkKCJdW+ BKAK7JQjbEs2GiEqWEk5x7qt/iwr6834bSa7+6K6h7KB6b/NyJKd3B8JJgx3iXmb CdBNDqwIm1u2yTW1+aR7k6Z/IE= Received: (qmail 21261 invoked by alias); 4 Jul 2013 16:17:21 -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 21242 invoked by uid 89); 4 Jul 2013 16:17:19 -0000 X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 04 Jul 2013 16:17:15 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 04 Jul 2013 17:17:12 +0100 Received: from [10.1.207.140] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Thu, 4 Jul 2013 17:17:09 +0100 Message-ID: <51D5A004.4070102@arm.com> Date: Thu, 04 Jul 2013 17:17:08 +0100 From: Marcus Shawcroft User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: wmi@google.com Subject: [PATCH] Fix pr571518.c test case. X-MC-Unique: 113070417171202401 X-Virus-Found: No Hello, This: http://gcc.gnu.org/ml/gcc-patches/2013-06/msg00767.html recently introduced test case uses the pattern: /* { dg-final { scan-rtl-dump-not "REG_EQUIV.*mem.*\"ip\"" "ira" } } */ I believe the intention is to look for the three tokens, in order within a single instruction, the actual effect is to look for the three tokens, in order, anywhere in the dump file. The test fails for at least arm-* and aarch64-* where we happen to have the appropriate three tokens spread through the dump file. /Marcus 2013-07-04 Marcus Shawcroft * gcc.dg/pr57518.c: Adjust scan-rtl-dump-not pattern. diff --git a/gcc/testsuite/gcc.dg/pr57518.c b/gcc/testsuite/gcc.dg/pr57518.c index 4c84a85..47e819c 100644 --- a/gcc/testsuite/gcc.dg/pr57518.c +++ b/gcc/testsuite/gcc.dg/pr57518.c @@ -2,7 +2,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-rtl-ira" } */ -/* { dg-final { scan-rtl-dump-not "REG_EQUIV.*mem.*\"ip\"" "ira" } } */ +/* { dg-final { scan-rtl-dump-not "REG_EQUIV\[^\n\]*mem\[^\n\]*\"ip\"" "ira" } } */ char ip[10]; int total;