From patchwork Fri May 25 08:03:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 136810 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3298932lji; Fri, 25 May 2018 01:43:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqUhpvLXKX1GWlRCgbZI+DreBR+rhmsqg3Sw+MhOIX01dW6n+VgdTPVqvhS47FfJl04kmAq X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr1628698plc.341.1527237805572; Fri, 25 May 2018 01:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527237805; cv=none; d=google.com; s=arc-20160816; b=Puzd4pU/Ufq5M+LJmOJnaBxerSXMaTFgOlTydC8eBg0rBFUfB0Gmx4zF5IhcZ04rOZ TUv4CSUS3AzQZ0ui52t3D8UNYcfHNivI1GzYJ/elu2YmsdduPTsDYEgaR1bNHF5JOcHp 2i6jXY2oLlUSWUuUbSJ/xIs82Ml1suTxpVS4Hl73sjJ/LgTz50Z7VUlCTlvETYuG/kZ6 JvBh6RNZHOKvGcDqSsaISU3eoxx2A1sRxhG7gNHQEDzl0WYAjquAnoQ95gTJdM1dVqT0 ChY7hOI0ELZMCIq5Vbs7bbvoYujnk2EYBHK3BQuMZ1Z9cjR8qO7kX8zLWi/RfOszCTf/ oLbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=8iMdJnjf58b7q/d7VfZcKHwkniOm7sXcAAwu76X80fI=; b=S8cPCJytM9DzcCMnprcxsRMkai5ACDvv4npoyb7E065TRBDEHumHBIbSH4C0o7QCQ7 KDb5DDXzQfOyttVBHgVqAcSZ28Zke9mR/f8K591wHv+w8e07AMIkyk8dOw+qoNH6spnO W4D8Iq4W9jGYOdJMQJqUbIQh39r6+KVdpdJ9PyRid8ZuHk7PAs1771Kp9E8AxXpHmsMC 28S/yqRjo6itnbHPtXh3ZBAHebV6X3Rl1U1bIBkAqwMYO0lhsx0hVUmyu68c0R3HEFpC Xj35/WJZ8kwwZJUKS4RPC3SOskyCdBYO8qfB2ZQJB59pqrLEk0KAbjzEEELKSzSv0+fN Zqow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=HqyMmZ+A; spf=pass (google.com: domain of gcc-patches-return-478477-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478477-patch=linaro.org@gcc.gnu.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id x2-v6si22374124plv.388.2018.05.25.01.43.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 01:43:25 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-478477-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=HqyMmZ+A; spf=pass (google.com: domain of gcc-patches-return-478477-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478477-patch=linaro.org@gcc.gnu.org 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:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=nfK 9lVPldWrbWYiL81mZ3WuQSgtNpFLQ5aKtqBM3h4hrNxUBefZUrru1uUy2hNWjkU2 VKiNPiw2v72kCcnrdSMTvSt6rYWm/zslCypqDp1M7iMwv83ay88mV4riPspiIFch aS1ad+XinLNQOFUYqjfu+G0+XYpFW5tfQZoRI6+U= 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:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=default; bh=mTYV4cWIv +IaHxyExOaE3FCucsE=; b=HqyMmZ+AVwnQJEb9Lspaf+oeIEcDTXMpbksa7EXBc b6dZdyzL+y79dNwCggUt8R5CI9C7ak8AY+6ZBaoLnIKkrN1ELw8EBt7ajuUVuptg yLESj+URBa37oklLsj5P9BYo2l0FabYQZjgQn6Joz17SjGeBUg9m5wuaVgjqYNXR 5k= Received: (qmail 121966 invoked by alias); 25 May 2018 08:21:30 -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 74230 invoked by uid 89); 25 May 2018 08:09:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx07-00178001.pphosted.com Received: from mx07-00178001.pphosted.com (HELO mx07-00178001.pphosted.com) (62.209.51.94) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 May 2018 08:09:36 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w4P88ZDF010559; Fri, 25 May 2018 10:09:34 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2j59prjwbw-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 25 May 2018 10:09:34 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2CDE434; Fri, 25 May 2018 08:09:34 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F28562428; Fri, 25 May 2018 08:09:33 +0000 (GMT) Received: from gnb.st.com (10.75.127.51) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 25 May 2018 10:09:33 +0200 From: Christophe Lyon To: , Subject: [ARM/FDPIC 16/21] [ARM][testsuite] FDPIC: Adjust scan-assembler patterns. Date: Fri, 25 May 2018 10:03:29 +0200 Message-ID: <20180525080354.13295-17-christophe.lyon@st.com> In-Reply-To: <20180525080354.13295-1-christophe.lyon@st.com> References: <20180525080354.13295-1-christophe.lyon@st.com> MIME-Version: 1.0 X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG5NODE1.st.com (10.75.127.13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-25_03:, , signatures=0 X-IsSubscribed: yes In FDPIC mode, r9 is saved in addition to other registers, so update the expected patterns accordingly. 2018-XX-XX Christophe Lyon Mickaël Guêné * gcc/testsuite/ * gcc.target/arm/interrupt-1.c: Add scan-assembler pattern for arm*-*-uclinuxfdpiceabi. * gcc.target/arm/interrupt-2.c: Likewise. * gcc.target/arm/pr70830.c: Likewise. Change-Id: Id946b79bacc32be585c31e60a355191f104cc29e -- 2.6.3 diff --git a/gcc/testsuite/gcc.target/arm/interrupt-1.c b/gcc/testsuite/gcc.target/arm/interrupt-1.c index fe94877..493763d 100644 --- a/gcc/testsuite/gcc.target/arm/interrupt-1.c +++ b/gcc/testsuite/gcc.target/arm/interrupt-1.c @@ -13,5 +13,7 @@ void foo () bar (0); } -/* { dg-final { scan-assembler "push\t{r0, r1, r2, r3, r4, fp, ip, lr}" } } */ -/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, r4, fp, ip, pc}\\^" } } */ +/* { dg-final { scan-assembler "push\t{r0, r1, r2, r3, r4, fp, ip, lr}" { target { ! arm*-*-uclinuxfdpiceabi } } } } */ +/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, r4, fp, ip, pc}\\^" { target { ! arm*-*-uclinuxfdpiceabi } } } } */ +/* { dg-final { scan-assembler "push\t{r0, r1, r2, r3, r4, r5, r9, fp, ip, lr}" { target arm*-*-uclinuxfdpiceabi } } } */ +/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, r4, r5, r9, fp, ip, pc}\\^" { target arm*-*-uclinuxfdpiceabi } } } */ diff --git a/gcc/testsuite/gcc.target/arm/interrupt-2.c b/gcc/testsuite/gcc.target/arm/interrupt-2.c index 289eca0..5be1f16 100644 --- a/gcc/testsuite/gcc.target/arm/interrupt-2.c +++ b/gcc/testsuite/gcc.target/arm/interrupt-2.c @@ -15,5 +15,7 @@ void test() foo = 0; } -/* { dg-final { scan-assembler "push\t{r0, r1, r2, r3, r4, r5, ip, lr}" } } */ -/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, r4, r5, ip, pc}\\^" } } */ +/* { dg-final { scan-assembler "push\t{r0, r1, r2, r3, r4, r5, ip, lr}" { target { ! arm*-*-uclinuxfdpiceabi } } } } */ +/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, r4, r5, ip, pc}\\^" { target { ! arm*-*-uclinuxfdpiceabi } } } } */ +/* { dg-final { scan-assembler "push\t{r0, r1, r2, r3, r4, r5, r6, r9, ip, lr}" { target arm*-*-uclinuxfdpiceabi } } } */ +/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, r4, r5, r6, r9, ip, pc}\\^" { target arm*-*-uclinuxfdpiceabi } } } */ diff --git a/gcc/testsuite/gcc.target/arm/pr70830.c b/gcc/testsuite/gcc.target/arm/pr70830.c index cad903b..cd84c42 100644 --- a/gcc/testsuite/gcc.target/arm/pr70830.c +++ b/gcc/testsuite/gcc.target/arm/pr70830.c @@ -11,4 +11,5 @@ void __attribute__ ((interrupt ("IRQ"))) dm3730_IRQHandler(void) { prints("IRQ" ); } -/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, ip, pc}\\^" } } */ +/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, ip, pc}\\^" { target { ! arm*-*-uclinuxfdpiceabi } } } } */ +/* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, r4, r9, ip, pc}\\^" { target arm*-*-uclinuxfdpiceabi } } } */