[PATCH-2,rs6000] Add ppc_cpu_supports_hw into proc is-effective-target-keyword [PR108728]
Message ID | d92ff30f-759a-2a1a-8086-511b3c0738b0@linux.ibm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2551044vqo; Mon, 17 Apr 2023 20:15:05 -0700 (PDT) X-Google-Smtp-Source: AKy350Z3Dw0V6AtsHCXnuGChFMEqNsZk2F/tvtCw6/5CHn/OroJtv7JGDSgBagNXIwY8oR+JA6U8 X-Received: by 2002:a17:907:8743:b0:94f:2bd0:4780 with SMTP id qo3-20020a170907874300b0094f2bd04780mr7666548ejc.58.1681787705217; Mon, 17 Apr 2023 20:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681787705; cv=none; d=google.com; s=arc-20160816; b=MVQoO/hNU6FhXURJZhwKuN0ZbOR43nUGFUNETRktHxqnMUt0qUfOJqMSl1Mb9DcuI3 Q6ZccxYngyxFxd+/RyyNeJctNSew+4FT+pEsvm6qmqJ5xXsZuxzdcQ9u5aIpw9tQcirr WWrmPLpyiWD8XZ825EIJf/tWMCPttTZNd6+fyiNkWXOPFrrfbmnEeJ2GwAE5x6avgjMu +7roaNsofScz5Qho+uhWUDe49jFPUMgTeGasJpeCXlOSbjGdBCYaZpKpFaioNfjufTlo BkVi2/bLtRldNFCLrVGqeZ5H0BB1gxgkoM+wlwGlxcIEMPGkzmxPaCJ0zOOwFdlhVNsM tMEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:subject:cc:to:content-language:user-agent :mime-version:date:message-id:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=j/ghk8Hfen/LR56Ulm40KWEGzvsTZzfmGwLw7RYrx8k=; b=eI28p3F4q+pCtGuQtuVgAfUqWxJA5ZsOrF+0qjNPih8beLPTQSh1aGSbxW90tQMykG B280GWCFtKoozQciU/8VdKQYGd2jPHJ1S5QDWB5I2ilST6mhA8MnVjx3v5ri0Fsngh4g EbPXwT0Mljjd8grieajOsbGBATig51GuSW4AnQdnyZV0zMAqdsjs4lmAfOInDhfE7Dob ZUNk3WaBb1OaKfRv4tDX3f66MtTgKHs5FvpjDvx/mjzbGGX1J7ekPDwZ6dcN00jX+csm xfGnZamE+K15URtxq7+pxDj3XWj8ASOcHGRcXmjtd7+SQ4IGAbxx8EwKGJrNm6BOMCh7 C9pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=A08KwYNQ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ff23-20020a1709069c1700b0094facaa94a0si1753326ejc.417.2023.04.17.20.15.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 20:15:05 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=A08KwYNQ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5D5193858C2C for <ouuuleilei@gmail.com>; Tue, 18 Apr 2023 03:14:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D5193858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681787697; bh=j/ghk8Hfen/LR56Ulm40KWEGzvsTZzfmGwLw7RYrx8k=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=A08KwYNQezvQRllH9sN46/3JGRfQTc7YSkHtZVkrc1XbbBw5db3rl3E0UqdxeoV8N ekup0+l0n5KUlXt3WWnw0CTegCZ3YjPtvuJaCDCA3edYabDj9HjP71LbC2acqeOEYU oYtCkCWpCZEmDgwBpaYMQVjbP3Wyksbt6gME/9qE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 3AF6C3858D28 for <gcc-patches@gcc.gnu.org>; Tue, 18 Apr 2023 03:14:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3AF6C3858D28 Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33I2tU3H014330; Tue, 18 Apr 2023 03:14:05 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3q1jur0e5n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Apr 2023 03:14:05 +0000 Received: from m0353728.ppops.net (m0353728.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 33I2uT15016922; Tue, 18 Apr 2023 03:14:05 GMT Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3q1jur0e4y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Apr 2023 03:14:04 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 33H5K4wT017234; Tue, 18 Apr 2023 03:14:02 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma03fra.de.ibm.com (PPS) with ESMTPS id 3pykj69dph-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Apr 2023 03:14:02 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 33I3E0D47144088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Apr 2023 03:14:00 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0F9812004D; Tue, 18 Apr 2023 03:14:00 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B8ACA20040; Tue, 18 Apr 2023 03:13:58 +0000 (GMT) Received: from [9.200.145.81] (unknown [9.200.145.81]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 18 Apr 2023 03:13:58 +0000 (GMT) Message-ID: <d92ff30f-759a-2a1a-8086-511b3c0738b0@linux.ibm.com> Date: Tue, 18 Apr 2023 11:13:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US To: gcc-patches <gcc-patches@gcc.gnu.org> Cc: Segher Boessenkool <segher@kernel.crashing.org>, David <dje.gcc@gmail.com>, Peter Bergner <bergner@linux.ibm.com>, Peter Bergner <bergner@linux.ibm.com> Subject: [PATCH-2, rs6000] Add ppc_cpu_supports_hw into proc is-effective-target-keyword [PR108728] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: imaWYVnomCGqLuLAn_6VaYoYMVNYJFGf X-Proofpoint-ORIG-GUID: TdQpQXpwnKFWUiq7Xw0_p-lm9T_fSjFg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-17_14,2023-04-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 spamscore=0 clxscore=1015 mlxlogscore=849 suspectscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304180027 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: HAO CHEN GUI via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: HAO CHEN GUI <guihaoc@linux.ibm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763482224595990573?= X-GMAIL-MSGID: =?utf-8?q?1763482224595990573?= |
Series |
[PATCH-2,rs6000] Add ppc_cpu_supports_hw into proc is-effective-target-keyword [PR108728]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
HAO CHEN GUI
April 18, 2023, 3:13 a.m. UTC
Hi, This patch adds ppc_cpu_supports_hw into explicit name checking in proc is-effective-target-keyword. So ppc_cpu_supports_hw can be used as a target selector in test directives. The patch passed regression test on Power Linux platforms. Thanks Gui Haochen ChangeLog rs6000: Add ppc_cpu_supports_hw into proc is-effective-target-keyword. gcc/testsuite/ PR target/108728 * lib/target-supports.exp (is-effective-target-keyword): Add ppc_cpu_supports_hw. patch.diff
Comments
Hi Haochen, on 2023/4/18 11:13, HAO CHEN GUI via Gcc-patches wrote: > Hi, > This patch adds ppc_cpu_supports_hw into explicit name checking in > proc is-effective-target-keyword. So ppc_cpu_supports_hw can be used > as a target selector in test directives. I think this is the prerequisite of the one "xfail float128 comparison test case that fails on powerpc64", so this should be PATCH 1/2 and that one would be 2/2. For the subject, maybe something like "testsuite: Make ppc_cpu_supports_hw as effective target keyword [PR108728]" can be clearer. OK for trunk, thanks. BR, Kewen > > The patch passed regression test on Power Linux platforms. > > Thanks > Gui Haochen > > ChangeLog > rs6000: Add ppc_cpu_supports_hw into proc is-effective-target-keyword. > > gcc/testsuite/ > PR target/108728 > * lib/target-supports.exp (is-effective-target-keyword): Add > ppc_cpu_supports_hw. > > > patch.diff > diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp > index 1d6cc6f8d88..e65b447663f 100644 > --- a/gcc/testsuite/lib/target-supports.exp > +++ b/gcc/testsuite/lib/target-supports.exp > @@ -9170,6 +9170,7 @@ proc is-effective-target-keyword { arg } { > "named_sections" { return 1 } > "gc_sections" { return 1 } > "cxa_atexit" { return 1 } > + "ppc_cpu_supports_hw" { return 1 } > default { return 0 } > } > }
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 1d6cc6f8d88..e65b447663f 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -9170,6 +9170,7 @@ proc is-effective-target-keyword { arg } { "named_sections" { return 1 } "gc_sections" { return 1 } "cxa_atexit" { return 1 } + "ppc_cpu_supports_hw" { return 1 } default { return 0 } } }