From patchwork Mon Sep 28 21:43:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 523608 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6AA34140D26 for ; Tue, 29 Sep 2015 07:43:29 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=epXqnxO6; dkim-atps=neutral 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:cc:subject:date:message-id; q=dns; s=default; b=KzxgdD314elv /V/wBOZ6LwC1HsyEztW5Li0FN2Aa4KWKSs/TBvb5XOvXv129OV/tNVI6TlzvOo28 jgNLLdb0shreU2zI6dyKebK2AsFMtBrpRbAj17WXJOYFg9StJeNE4IKn0lyb8Ogw nEN4VnFYNlAVeFKXXYMS/AzfL9uCAcc= 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:cc:subject:date:message-id; s=default; bh=wvPbBK4TZ1AGGupCVs jcs2GDkAY=; b=epXqnxO6gxJxBzjeJH1sy2fBTLtNB/EJeaiMGzDDtEzAnEoeHz aY0UhNZvtjqcxEs1xGBD1gI+Yuw2WKz1uPDYOzKnjsga+OTHISm6lXnHUwi++mu8 lnD9FIkDYVo5HvJzvq8J/wuX2/CyS9/Ndhb0Ki+n2pLBnl2eyKfEWi/yo= Received: (qmail 54648 invoked by alias); 28 Sep 2015 21:43:22 -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 54637 invoked by uid 89); 28 Sep 2015 21:43:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 28 Sep 2015 21:43:20 +0000 Received: from gcc1-power7.osuosl.org (localhost [127.0.0.1]) by gcc1-power7.osuosl.org (8.14.6/8.14.6) with ESMTP id t8SLhHf2015615; Mon, 28 Sep 2015 14:43:17 -0700 Received: (from segher@localhost) by gcc1-power7.osuosl.org (8.14.6/8.14.6/Submit) id t8SLhFvU015602; Mon, 28 Sep 2015 14:43:15 -0700 From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool Subject: [PATCH] Fix gcc.dg/asm-4.c Date: Mon, 28 Sep 2015 14:43:11 -0700 Message-Id: <2ff34e123e43275e70b8ef0b514ce96442ff6f1c.1443475791.git.segher@kernel.crashing.org> X-IsSubscribed: yes Double-quoted words in Tcl have substitutions performed on them, including backslash substitutions. That isn't terribly nice for regular expressions, so use braced words instead. Tested on powerpc64-linux. Okay for mainline? Segher 2015-09-28 Segher Boessenkool gcc/testsuite/ * gcc.dg/asm-4.c: Use braced words for the regular expressions. --- gcc/testsuite/gcc.dg/asm-4.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.dg/asm-4.c b/gcc/testsuite/gcc.dg/asm-4.c index 0067598..1e6a538 100644 --- a/gcc/testsuite/gcc.dg/asm-4.c +++ b/gcc/testsuite/gcc.dg/asm-4.c @@ -11,7 +11,6 @@ int main() asm volatile ("test3 %[in]" : [inout] "=g"(x) : "[inout]" (x), [in] "g" (y)); } -/* ??? Someone explain why the back reference dosn't work. */ -/* { dontdg-final { scan-assembler "test0 X(.*)Y\1Z" } } */ -/* { dontdg-final { scan-assembler "test1 X(.*)Y\1Z" } } */ -/* { dontdg-final { scan-assembler "test2 X(.*)Y\1Z" } } */ +/* { dg-final { scan-assembler {test0 X(.*)Y\1Z} } } */ +/* { dg-final { scan-assembler {test1 X(.*)Y\1Z} } } */ +/* { dg-final { scan-assembler {test2 X(.*)Y\1Z} } } */