From patchwork Wed Jun 13 18:57:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dimitar Dimitrov X-Patchwork-Id: 929072 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-479663-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dinux.eu Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="cynKMKPb"; dkim-atps=neutral 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 415d8251NZz9ry1 for ; Thu, 14 Jun 2018 06:07:14 +1000 (AEST) 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:in-reply-to:references; q=dns; s= default; b=RvrArUHOgeij5cGxSap2Am8d6Q1CVy29p4W0AVWb0+wKi+cmv2cYN 7DpVCJeGWaI9Up6mxUJSOvpYwyckMcjHHLVVhL6ezxyQyhZPNm/yyOoQG8BzvYxR SQyaU5S/qisZ4ZhOscWibOVRw8GULO0+rf5TYmtQJtMk7eqbrNcn3s= 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:in-reply-to:references; s= default; bh=YT1WKVt+zqMPYg4yQpO0pgjxG4k=; b=cynKMKPbWIk9PbGTOKu2 +wvI1o45x/KBQURWK7W68Y1yPJB+4JdspHb0oWRP1rll068vIHZIUUqHhMzBNXxM gThk+g20DFcDcSH7R15iPR9xbNi9xBhe+0eWPqc5lRpkHpufzqJ2GRwTBlRlthNd N22EOTwQ1wWVW029H9zsmxg= Received: (qmail 113743 invoked by alias); 13 Jun 2018 20:06:53 -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 113613 invoked by uid 89); 13 Jun 2018 20:06:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=3886 X-HELO: spamexpert01-s28.outgoing.host.bg Received: from spamexpert01-s28.outgoing.host.bg (HELO spamexpert01-s28.outgoing.host.bg) (217.174.156.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 13 Jun 2018 20:06:51 +0000 Received: from server28.host.bg ([193.107.36.199]) by spamexpert01.outgoing.host.bg with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fTAyN-0007RT-95 for gcc-patches@gcc.gnu.org; Wed, 13 Jun 2018 21:58:24 +0300 Received: from [95.87.234.74] (port=54300 helo=localhost.localdomain) by server28.host.bg with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1fTAyL-002tSX-07; Wed, 13 Jun 2018 21:58:21 +0300 From: Dimitar Dimitrov To: gcc-patches@gcc.gnu.org Cc: Dimitar Dimitrov Subject: [PATCH 05/11] testsuite: Add check for unsupported TI ABI PRU features to testsuite Date: Wed, 13 Jun 2018 21:57:59 +0300 Message-Id: <20180613185805.7833-6-dimitar@dinux.eu> In-Reply-To: <20180613185805.7833-1-dimitar@dinux.eu> References: <20180613185805.7833-1-dimitar@dinux.eu> X-AuthUser: dimitar@dinux.eu X-SpamExperts-Domain: server28.host.bg X-SpamExperts-Username: 193.107.36.199 Authentication-Results: outgoing.host.bg; auth=pass smtp.auth=193.107.36.199@server28.host.bg X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: SB/global_tokens (0.0089906854749) X-Recommended-Action: accept X-Report-Abuse-To: spam@spamexpert01.outgoing.host.bg X-IsSubscribed: yes Not all C language features are supported when -mabi=ti option is used for PRU target. gcc/testsuite/ChangeLog: 2018-06-13 Dimitar Dimitrov * lib/gcc-dg.exp: Filter unsupported features in PRU's TI ABI mode. * lib/target-utils.exp: Ditto. Signed-off-by: Dimitar Dimitrov --- gcc/testsuite/lib/gcc-dg.exp | 11 +++++++++++ gcc/testsuite/lib/target-utils.exp | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index c5ab850c840..f4976520282 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -388,6 +388,17 @@ proc gcc-dg-prune { system text } { return "::unsupported::memory full" } + if {[string match "pru-*" $system] && \ + [string match "*error: function pointers not supported with -mabi=ti option*" $text]} { + # The format here is important. See dg.exp. + return "::unsupported::abi" + } + if {[string match "pru-*" $system] && \ + [string match "*error: large return values not supported with -mabi=ti option*" $text]} { + # The format here is important. See dg.exp. + return "::unsupported::abi" + } + return $text } diff --git a/gcc/testsuite/lib/target-utils.exp b/gcc/testsuite/lib/target-utils.exp index 732a1827a02..e288447ef1d 100644 --- a/gcc/testsuite/lib/target-utils.exp +++ b/gcc/testsuite/lib/target-utils.exp @@ -44,5 +44,13 @@ proc ${tool}_check_unsupported_p { output } { [string match "*exceeds local store*" $output] } { return "memory full" } + if {[istarget pru-*] && \ + [string match "*error: large return values not supported with -mabi=ti option*" $output]} { + return "abi not supported" + } + if {[istarget pru-*] && \ + [string match "*error: function pointers not supported with -mabi=ti option*" $output]} { + return "abi not supported" + } return "" }