From patchwork Wed Jan 22 01:56:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 1226893 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-517958-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=W4jNJawl; dkim=pass (2048-bit key; unprotected) header.d=marvell.com header.i=@marvell.com header.a=rsa-sha256 header.s=pfpt0818 header.b=KZQJCSue; 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 482T6m3W2gz9sPJ for ; Wed, 22 Jan 2020 12:57:02 +1100 (AEDT) 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:mime-version:content-type; q=dns; s=default; b=doNd0mC2zfwtXjqrhuKm3nmnIrJpd2LR4H5Cg/DRhB6HUGTUZg j4dvUeeR0do1HFRhKOGV7UKCyhxsqCSwyPdO/9Ezy2g/097FqfJMwaNkJZH6HdBX VPz2vl41A/jiC8piqbFHyvFlIg1q4JnchsFe/JDoh4U4vjseUJdoTdesA= 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:mime-version:content-type; s= default; bh=rN+ie1Aa4jATczE3z6jXat8hZFs=; b=W4jNJawl006B5OM8YxG+ B9LTA9a7OSAog2nYpm20Js8dhE2wKe6FeI965jRNHv69XAW69cc7mfp4f4yLiZSR rU2Un4NQKPCeyBGuGKkbmP/BZuyRJHsUFzTivtXhzcPiX0qg/+r9yNWwl28wPN6K TtsCC5CvLNnMJHiWe2ruAeY= Received: (qmail 53339 invoked by alias); 22 Jan 2020 01:56:54 -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 53323 invoked by uid 89); 22 Jan 2020 01:56:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.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: mx0b-0016f401.pphosted.com Received: from mx0a-0016f401.pphosted.com (HELO mx0b-0016f401.pphosted.com) (67.231.148.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Jan 2020 01:56:53 +0000 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00M1u9SI007103 for ; Tue, 21 Jan 2020 17:56:51 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=eHHFzIyzn1z+uIM3ufVU0R9cYwtavexCJx2e5TB6X1M=; b=KZQJCSueVdHeQh6THRu1x6xXKzFkre+11IsAj/K6ZW97E8P49jVVdASXQ2Eb+SMCY1qV HKQZ6M3mmVz864AV9rPCAnrxbDMlkoZomCdEeCGQnaEYjx5h59q79z2Sh7h4JrTEirm5 KvhK9nccl6v+xwlElKLqJoclCjQqrS3sh3CG6L/99piB09YTvKKoTmp3xxGtofUaaekm y5toJL0uxb40ESZyOo2rBs3DiVst+DtHowfNDP97NFChV00hha/F9WTc4U1w9+d23z5l 1D8V6pgEKMKRD/ewiz3+JZ7Htt3KYoA859wIsrq5HY2jHkxgxbxzcceu+4SLNUz0IYpx jw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2xm08vdgtu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 21 Jan 2020 17:56:51 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Jan 2020 17:56:50 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 21 Jan 2020 17:56:50 -0800 Received: from linux.pinskiwright.org.com (unknown [10.11.201.32]) by maili.marvell.com (Postfix) with ESMTP id 992D23F703F; Tue, 21 Jan 2020 17:56:49 -0800 (PST) From: To: CC: Andrew Pinski Subject: [PATCH] Allow tree-ssa.exp to be run by itself Date: Tue, 21 Jan 2020 17:56:38 -0800 Message-ID: <1579658198-16020-1-git-send-email-apinski@marvell.com> MIME-Version: 1.0 From: Andrew Pinski tree-ssa testcases sometimes check autovect effective target but does not set it up. On MIPS, those testcases fail with some TCL error messages. This fixes the issue by calling check_vect_support_and_set_flags inside tree-ssa.exp. There might be other .exp files which need to be done this way too but I have not checked all of them. OK? Tested on x86_64-linux-gnu and a cross to mips64-octeon-linux-gnu. Both full run of the testsuite and running tree-ssa.exp by itself. Thanks, Andrew Pinski testsuite/ChangeLog: * tree-ssa.exp: Set DEFAULT_VECTCFLAGS and DEFAULT_VECTCFLAGS. Call check_vect_support_and_set_flags also. --- gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp b/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp index 7d262ffd0fb..464fef628f8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp +++ b/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp @@ -19,6 +19,17 @@ # Load support procs. load_lib gcc-dg.exp +# Set up flags used for tests that don't specify options. +global DEFAULT_VECTCFLAGS +set DEFAULT_VECTCFLAGS "" + +# Set up a list of effective targets to run vector tests for all supported +# targets. +global EFFECTIVE_TARGETS +set EFFECTIVE_TARGETS "" + +check_vect_support_and_set_flags + # If a testcase doesn't have special options, use these. global DEFAULT_CFLAGS if ![info exists DEFAULT_CFLAGS] then {