From patchwork Wed May 15 12:39:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 164290 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp606825oca; Wed, 15 May 2019 05:45:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxChRIOqx/JviEc+LfpeQi6tEzFyDKr3X0IoDYXItlN3mp/5pKFjpXRlRZBgyd3JyVvI1NX X-Received: by 2002:a63:f54c:: with SMTP id e12mr44109981pgk.62.1557924346303; Wed, 15 May 2019 05:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557924346; cv=none; d=google.com; s=arc-20160816; b=KKidJH6a9G0mXXHk9etIBGq4Ku5cuWvL2B+EEfPGjaG9WGo8N0hLjceSEHSdK57UvI hroOOMhv2DsgctZ+Ehk0ukQwjB9XOVFZ1RkOCeqmXTQ3TtLFPSlIqckCwcvGMH6mamf3 DVnVApO92hAK1XHw8CA/QdSGyG2g8UxnLtLt8Bs9WiYpi2TKL5kSCs6c7GZiadt8yywR DhUiUycZZYLIm5ePqZXYWqhe5JH8nHH8sGx7KqB30N6OBsxkIuaDlLXEuH3zCvHhZctf unIwXjk3EjVR4xqIRKtDZDBImouVjHxlfFQQb3tHNzji+NYhagumbPk6gN3rnzdntZFQ WFKQ== 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:dkim-signature:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature; bh=kahJ+KpkzCNlv9KyqLkSds2W5XnpboqQU70EQdZ32wQ=; b=ZPPiyxJotYT+86W/zs5Dk41Vv8U5S5snBuvXZQifx5qKx+cZhoR9VlPmAOTUnT1xQM u1nT6M9s+RiR37H4PXhM0MU8C/KJCyU2roRlSC8cEztsRs4+zFCZg6mzzkNDEhmMr95a kx+QhUGhYXLkb4sUI6hUxz1bR0elfL254ImZf/A2wSjVvbwgBxQKWpXEMlDrtLBxB+lF vlsvfCC7nbBt30RBTkehCExjL+vKS4KCeRUKSu7UhNyy8K+ihrSZx6uRXCykMgfONwvw DFcHek4FH5ozc/mA3/HuDR4DjOcSFHk9JimUBiSKR1Lj657/DQXf8zwHJTYmbiRONQ48 ft8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=prTq3okH; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=W1CJM6DC; spf=pass (google.com: domain of gcc-patches-return-500779-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-500779-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 b62si1792781pga.51.2019.05.15.05.45.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 May 2019 05:45:46 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-500779-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=prTq3okH; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=W1CJM6DC; spf=pass (google.com: domain of gcc-patches-return-500779-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-500779-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=ssD 9zr1BxieU4dkfJvoRftWS4tuWd71n7PHhSQdLtwwjZ7tPh9MmQs2PhYpdLVClIEK VKRndaOQVhd4tOLC1cmKoxnfxORHPUgwPRJ6bWOOvSER5Nw0htoROS0giTV+s+fr 0mqB6f9WZX9gg2yjguBGygTAEupO08a7YxjxynmM= 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=+HhvRUS1F DVamAfzpcJUrehwHNY=; b=prTq3okHhVCzmdDSOaeqPr7/wnaEmMHK5C0y2vO8o tR0r+rcUhSIJl/VLLrfKH3kV78DVJyE94ntGh/Rwcacdsg/KrATGinCaHA6QSAsm BKRBDN4ZTwfvaN/W1uM6ts3ahH0CheyXNWBz+JAxAy+NVR5fCGrbFdoxmixx+dYC Z4= Received: (qmail 39740 invoked by alias); 15 May 2019 12:45:32 -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 28989 invoked by uid 89); 15 May 2019 12:45:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.4 required=5.0 tests=AWL, 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.1 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; Wed, 15 May 2019 12:45:24 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4FCggZY007108 for ; Wed, 15 May 2019 14:45:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=STMicroelectronics; bh=kahJ+KpkzCNlv9KyqLkSds2W5XnpboqQU70EQdZ32wQ=; b=W1CJM6DCjiesPnVE9zTO+L7GGzgU6eRXxX6/faO2CKkqXzNrZiqlYGp5tW+x7mlRvzxi EFQg19tyIMW+4IbBxNpyoFjxsC5mfdxr08g3twAumNugZx3iyXAPBHKa0PJ7VELqFgfb GPVOZC8ZXM3DLsHve9offG75DaKtDgnQTgkXIxgEWKRUGpBf9p7Q6xXVACfz84HTe1gy Mf59K1OqflSF94kwj+UjgDbx26FYNgsSUSiUV3GqhD3QLQZMJ3N+KUxT2AhKioH+BOTD xL32q7VDdb4go5ayoZqWT/k59FRCdaxqxLIAgxQEqVr4sBtJNmER0Fr4HT42I5SNc0GC GQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2sdkv00ha9-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 15 May 2019 14:45:19 +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 6005931 for ; Wed, 15 May 2019 12:45:18 +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 412F32414 for ; Wed, 15 May 2019 12:45:18 +0000 (GMT) Received: from gnb.st.com (10.75.127.45) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 15 May 2019 14:45:17 +0200 From: Christophe Lyon To: Subject: [ARM/FDPIC v5 15/21] [ARM][testsuite] FDPIC: Adjust scan-assembler patterns. Date: Wed, 15 May 2019 14:39:40 +0200 Message-ID: <20190515124006.25840-16-christophe.lyon@st.com> In-Reply-To: <20190515124006.25840-1-christophe.lyon@st.com> References: <20190515124006.25840-1-christophe.lyon@st.com> MIME-Version: 1.0 X-IsSubscribed: yes In FDPIC mode, r9 is saved in addition to other registers, so update the expected patterns accordingly. 2019-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 } } } */