From patchwork Mon Sep 9 15:44:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 173404 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp4539374ilq; Mon, 9 Sep 2019 08:50:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXbJcu0XvLEVZbtdyPJaOfrmNmV5uDw05vQGq9SfPeRQVJNsPzQ3QdBSe3vgas2nwdllmB X-Received: by 2002:a50:eb81:: with SMTP id y1mr24922602edr.216.1568044259106; Mon, 09 Sep 2019 08:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568044259; cv=none; d=google.com; s=arc-20160816; b=r9LIYj+B2nAt5dxwynwo3nEFd2bSGYFYfiNLe4XMtFxMd/ieoTM69hYhgfhRVZjrU9 0XjsfCLNXM8uXA23CPW1Fi9APQF440WQA39z/bLlgEFIDx1l3R7Jklu3K8dzCs5ijqMn lpIpaGcbaTzbCTyhNK0TxFDEr6gHYh6lWoogFFc89QNW/W1A7KhsbC6kcE/GJjaG7BcM EAXPUNjLa4fodVgeZn7ka7MdNq0F5B1hA7F+B2vRqgGzCzUsrtokBoe3CKeBAhtop8uG P+FnTDZnuO0NMvi6MW5WJh94K7e6T4GY4gl5WzIu/rnEyenBPN6YccpUcaeaBhZyDJK1 apRA== 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=V+G6YBtvE+TCG0l4zg0mkxbBJ7/PhsVpV/C8lhJJxmM=; b=QDkqBxarvz/fRFCe7DVBSEy9/sh5uPSmOghGE0523edvwLwoOdaMM5tYzBCDm47+8p ZWmOLuvw41MiOL12yWSpL1iOy85y6p9NVry7MevtASj6ueR5Cdk+3anF8UsN/WjD9P3t SzXeviYxKxKWSpUIv4R0edyunzjGUfdiDodw0GA59C68LFKW5V7998Mi4IH9hd/UQ7qJ faR2HpUVzSeVyjfeN3NRK8RtcFVg+5fB9Zke/q0kQiDwAbZQf66L89ywworuJ59UtVy4 VVX5Z4PWtrs0pmFgqn4a0o6SsxU2dhukTEd6nFp4Ofq/f2A/IXax+TxP0rh9pG9Hu3tY 160A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=W9qBP9eV; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=kVbcjKkj; spf=pass (google.com: domain of gcc-patches-return-508657-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-508657-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 pv20si7141841ejb.243.2019.09.09.08.50.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Sep 2019 08:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-508657-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=W9qBP9eV; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=kVbcjKkj; spf=pass (google.com: domain of gcc-patches-return-508657-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-508657-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=bjQ 3SV5GZ0U32sMJOP6fH0Ya3TUX1zLMTkO92ttxwX3T4xhtojRAK9Ax5cj8O31Xun1 4+zbAnp8YItoqon1wIAYJcTs3n8I3mDiuGzVb+c2QzT0tJhAmcvVVX6mNWTeopKg gZSqE6XVw4YpTVHByOiGUc7CJDLZXtCaobjvfw30= 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=qyjGN3l8E 5S084osY6+jDCYKysc=; b=W9qBP9eV7afPgH7npvFqTqvpl4kHdq0ZxXBhy3UJc Ngb8O2Ws5HSZGNYVZC+2VHhGjHbxn8g2ONMDYrPumh+ElN/64V60t90+uEc7Pbu2 icRSil+/POnCmip+0vBQY+tX/w0xeERQHmX3+dv1HFE70r8XJGoCXknYpE6W3fyG xs= Received: (qmail 2491 invoked by alias); 9 Sep 2019 15:50:44 -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 2480 invoked by uid 89); 9 Sep 2019 15:50:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 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 mx08-00178001.pphosted.com (HELO mx07-00178001.pphosted.com) (91.207.212.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Sep 2019 15:50:42 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x89FkAiF003533 for ; Mon, 9 Sep 2019 17:50:40 +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=V+G6YBtvE+TCG0l4zg0mkxbBJ7/PhsVpV/C8lhJJxmM=; b=kVbcjKkjuiSvLqCd4Fq5IRetS5l0FKdBOkhWkbT6T1RTJtnVUOMLwUQ13BTqkMWkoYSy Oj2ItACQKrWDB1xPQuFjrCYs/DQj+Cc2fwjzsMui1fmnIAED0dJ4se+nla3QZXLRK9LS lHsYFSJq2zds3kTGeZQPwmiRq8RPcgSbPv4JUNptoyNNPTbgimcibANsW5HKFcY67mrs h8VK/EhQcrlFcEsznRr++msyLxIzSfCqJxYHUumUwz03foV/BV/PaZsUXqT/M6fK6Y7F 9VtOCzFByxX8Or96oUj2fqZSWTOG7Pe2zvLGUWgX6yr9ZEuM95kzgP/U3D9NrTiX9vpy PA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx08-00178001.pphosted.com with ESMTP id 2uv1pa7144-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 09 Sep 2019 17:50:40 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 0E5A623 for ; Mon, 9 Sep 2019 15:50:36 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 129CF2ADEEE for ; Mon, 9 Sep 2019 17:50:36 +0200 (CEST) Received: from gnb.st.com (10.75.127.46) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 9 Sep 2019 17:50:35 +0200 From: Christophe Lyon To: Subject: [ARM/FDPIC v6 15/24] [ARM][testsuite] FDPIC: Adjust scan-assembler patterns. Date: Mon, 9 Sep 2019 17:44:57 +0200 Message-ID: <20190909154526.11630-16-christophe.lyon@st.com> In-Reply-To: <20190909154526.11630-1-christophe.lyon@st.com> References: <20190909154526.11630-1-christophe.lyon@st.com> MIME-Version: 1.0 X-IsSubscribed: yes From: Christophe Lyon 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 } } } */