From patchwork Tue Jul 16 23:19:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Carl Love X-Patchwork-Id: 1961351 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=XntrccHc; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WNw5B1w7Rz1xrQ for ; Wed, 17 Jul 2024 09:19:42 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 703303870924 for ; Tue, 16 Jul 2024 23:19:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 8FA883858C56 for ; Tue, 16 Jul 2024 23:19:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8FA883858C56 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8FA883858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721171957; cv=none; b=rhm8qd7mwdjmh4xskqH3iAIfBnoN3w/hC8urgd5waSWwX/opcx3R17HlQSsMFr8hI2pYqtlGCplsJB3UkDhFGi7HTqxh9VrnhB4GSuBoxstMdzgX9AYlKF0D1QzRIpcyt+x1pp3+/ozQMk43kACIZInthuuDQbSwBv/rIhhwJws= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721171957; c=relaxed/simple; bh=2nQ0WekhOeotCRckbC+DcU4evaMTyIDfduilnSi/5gA=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=Pht28BdJAMPM9GJgboNuDPvMZdem2O0ZprrR9EIC0rLjnQWDG40xKxlZYth8Nw8dJeiA2mxZgzqnrQryIeJwOWMcfwqtzAItTb7quRBcEdXruC0A0egpT0u3qGhdW6Iea7bNozba+9mvjFT6E9wEk+2s5WqK80VG/Y6dTiuKuG8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46GMxTJ8006286; Tue, 16 Jul 2024 23:19:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= message-id:date:mime-version:to:from:subject:content-type :content-transfer-encoding; s=pp1; bh=HpRoKEzZnk+pr0Pc6QI2Yl/wnJ jX9tZ+WvTJM63+KqA=; b=XntrccHcLlr/mLf9cx9gLmeqhO/pbSFqlBgB03TONF V6M7xZkAid5c3idrucUFTEYyAurSSNUJ96PlzPESAXzqelFxagKVIOIOum7kgV+0 HLMDNDrAan1U5l8CGTyBo9OnH2AB+NNIH4dxOL8mHXl12LUDptjJUA6LnF6OovTl 0hjDbJL1igspNluTDTwyKOvaZ/gJhxpfELM+K4lWhaxB6RZw99W1/07aHt4Ban7D pfPY1Zn1cbhSmYLWrf83Nuu2rGJ7qfYjEQpd3gdOY1+/h1DrRyiu21zF+wf5T/yY iJ9rQTNNEt06FGRIVSwumkr+n3W6BAFbfd6gcDbe1c7w== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 40e24f0189-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jul 2024 23:19:14 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 46GLEUtS006004; Tue, 16 Jul 2024 23:19:14 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([172.16.1.8]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 40dwkn1crx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jul 2024 23:19:14 +0000 Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 46GNJ77k53215660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jul 2024 23:19:09 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CC0345805C; Tue, 16 Jul 2024 23:19:07 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F30925805A; Tue, 16 Jul 2024 23:19:06 +0000 (GMT) Received: from [9.67.0.197] (unknown [9.67.0.197]) by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 16 Jul 2024 23:19:06 +0000 (GMT) Message-ID: <32a7e3a7-fdb1-44d1-8cbb-65ecec04409f@linux.ibm.com> Date: Tue, 16 Jul 2024 16:19:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: gcc-patches@gcc.gnu.org, Peter Bergner , segher , Kewen , cel , seurer@us.ibm.com From: Carl Love Subject: [PATCH ver 2] rs6000, update effective target for tests builtins-10*.c and, vec_perm-runnable-i128.c X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: h7t9x7rFBRmT09Bd8WkUlJF7T8DoUtAr X-Proofpoint-GUID: h7t9x7rFBRmT09Bd8WkUlJF7T8DoUtAr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-16_02,2024-07-16_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 malwarescore=0 mlxlogscore=772 clxscore=1015 mlxscore=0 priorityscore=1501 adultscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2407160168 X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org GCC maintainers: Version 2, removed the lp64 from the target per discussion.  Tested and it is not needed.  The int128 qualifier is sufficient for the thest to report as unsupported on a 32-bit Power system. The tests:   tests builtins-10-runnable.c   tests builtins-10.c   vec_perm-runnable-i128.c generate the following errors when run on a 32-bit BE Power system with GCC configured with multilib enabled. FAIL: gcc.target/powerpc/builtins-10-runnable.c (test for excess errors) FAIL: gcc.target/powerpc/builtins-10.c (test for excess errors) FAIL: gcc.target/powerpc/vec_perm-runnable-i128.c (test for excess errors) The tests use the __int128 type which is not supported on 32-bit systems.  The test for int128 and lp64 was added to the test cases to disable the test on 32-bit systems and systems that do not support the __int128 type.  The three tests now report "# of unsupported tests 1". The patch has been tested on a Power 9 BE system with multilib enabled for GCC and on a Power 10 LE 64-bit configuration with no regression failures. Please let me know if the patch is acceptable for mainline. Thanks.                            Carl ------------------------------------------------------------------------ [PATCH] rs6000, update effective target for tests builtins-10*.c and vec_perm-runnable-i128.c The tests:   tests builtins-10-runnable.c   tests builtins-10.c   vec_perm-runnable-i128.c use __int128 types that are not supported on all platforms.  The __int128 type is only supported on 64-bit platforms.  Need to check that the platform is 64-bits and support the __int128 type.  Add the int128 and lp64 flags to the target test. gcc/testsuite/ChangeLog:     * gcc.target/powerpc/builtins-10-runnable.c: Add     target int128 and lp64.     * gcc.target/powerpc/builtins-10.c: Add     target int128 and lp64.     * gcc.target/powerpc/vec_perm-runnable-i128: Add     target int128 and lp64. ---  gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c   | 2 +-  gcc/testsuite/gcc.target/powerpc/builtins-10.c            | 2 +-  gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c | 2 +-  3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c b/gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c index dede08358e1..e2d3c990852 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target int128 } } */  /* { dg-require-effective-target vmx_hw } */  /* { dg-options "-maltivec -O2 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-10.c b/gcc/testsuite/gcc.target/powerpc/builtins-10.c index b00f53cfc62..007892e2731 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-10.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-10.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target int128 } } */  /* { dg-options "-O2 -maltivec" } */  /* { dg-require-effective-target powerpc_altivec } */  /* { dg-final { scan-assembler-times "xxsel" 6 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c b/gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c index 0e0d77bcb84..df1bf873cfc 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c +++ b/gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target  int128 } } */  /* { dg-require-effective-target vmx_hw } */  /* { dg-options "-maltivec -O2 " } */