From patchwork Mon Jul 15 22:43:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Carl Love X-Patchwork-Id: 1960852 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=Fhs7Zma1; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4WNHLM1S5xz1ySl for ; Tue, 16 Jul 2024 08:43:55 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BFCCB384AB56 for ; Mon, 15 Jul 2024 22:43:52 +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 DE3313864847 for ; Mon, 15 Jul 2024 22:43:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE3313864847 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 DE3313864847 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=1721083413; cv=none; b=OY7+Pi6f0JyRi4RvkUSaCrop7I2bFFgS1ZRXvqF5w5QZRyYdQte2HrE5AzfFBP7/ZHuCBTj7XBayEaz7FRo+fU+OCDpRmHLvvw6BmW6nHxHTnZ0891iInX7oNxmWDpsoY8Jd3i3FocKjTNKIWTyeqKfsvtqwtibsiGRbZL+tKG0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721083413; c=relaxed/simple; bh=huCpzdymeRpYj7KCAk/tlwz4TfjeoZv9NYmYpHrb48U=; h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To; b=F/rDhbxDzUWjfaZuDgLTIKIaJm8NBweiqhfLKjTENp6CfeSq3xMewTussI9ftUnOSdA0/SQt4TEpDp0MN0lysX9c0MrAdFiyU1l+wS1CA600XgXfFCCeNzzr+IWqJgt77XiACwOopq2CPKLv1FK4M1d9I49nNepfCPH9nH5+BiQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46FLRPW3022971 for ; Mon, 15 Jul 2024 22:43:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= message-id:date:mime-version:from:subject:to:content-type :content-transfer-encoding; s=pp1; bh=P32SH/w63UTwHC6b3aQ/8OR8Y/ 6D8gFh7RutC5AOI4w=; b=Fhs7Zma1iwRwhvFJVRIyivyOknLRtI+lCo6CjE6cGA l67t0Bci0dGFgAizvlDrQDXbkGj5Q7Pn8ScC+3K5gcSfjoEBvuvNWe/jTkWgPLsO DUD5SCPxMKqRYnZiKDYkpaJ9kEEhZuzaCxLQIsXMPQH1oTEhS6UChRYeu+gMh1/v 5ZLDLQheKtfRnvl93//oynLZWukEMqBas0lwM3B4Hjnk8soERKqYaDfYUw5gK/tc Hzy/C4iJ2Q4UR/z/fLe7wfRuLz8aOW4CDulxFczeQU05jMDdOaQwsR8tH1Dva99c bfZ2gY/s6ayJwI+Lg1YirWi4nqOLkvUUDBpmu750hVdw== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 40d86srjap-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 15 Jul 2024 22:43:31 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 46FLVeRm021927 for ; Mon, 15 Jul 2024 22:43:30 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 40c5dns1p4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 15 Jul 2024 22:43:30 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 46FMhPaO11928144 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jul 2024 22:43:27 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EC69D58067; Mon, 15 Jul 2024 22:43:24 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3B38158056; Mon, 15 Jul 2024 22:43:24 +0000 (GMT) Received: from [9.67.152.117] (unknown [9.67.152.117]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 15 Jul 2024 22:43:24 +0000 (GMT) Message-ID: <9aff08ae-1ce6-4f78-b8ab-7be1687d1e7d@linux.ibm.com> Date: Mon, 15 Jul 2024 15:43:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Carl Love Subject: [PATCH] rs6000, update effective target for tests builtins-10*.c and, vec_perm-runnable-i128.c To: gcc-patches@gcc.gnu.org, Kewen , Peter Bergner , seurer@us.ibm.com, cel X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: X63Ad30_fSra1yr4lgBQPdkMQygMfr1r X-Proofpoint-GUID: X63Ad30_fSra1yr4lgBQPdkMQygMfr1r 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-15_15,2024-07-11_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 impostorscore=0 mlxscore=0 suspectscore=0 mlxlogscore=741 bulkscore=0 phishscore=0 clxscore=1015 adultscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2407150171 X-Spam-Status: No, score=-8.7 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: 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 -------------------------------------------------------------- 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..da3011d4c00 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 { lp64 } && { 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..bc3cdb69305 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 { lp64 } && { 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..c9b8a2053b7 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 { lp64 } && { int128 } } } */  /* { dg-require-effective-target vmx_hw } */  /* { dg-options "-maltivec -O2 " } */