From patchwork Wed Jul 31 09:08:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 1966968 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=bvOr/BZ+; 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 4WYmW80fGsz1ybV for ; Wed, 31 Jul 2024 19:09:24 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 54972385843B for ; Wed, 31 Jul 2024 09:09:22 +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 5718B385AC29 for ; Wed, 31 Jul 2024 09:08:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5718B385AC29 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 5718B385AC29 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=1722416934; cv=none; b=fJe3A8hCuqufmjo8kL6TqavkHG6BGGjxPtKmAwQGYaW+9xdJRLSBcfYVcaII0v/TzFptx08lwv16YZA8xSXQUh/jaC3TnNrCrFvXBVd1m1T8+YMxWlPwI8jAfdlZCOpAXvZlCWTJHpCimVL+S4eFiqy8u2mtRhwTolPkvKoe1Yk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722416934; c=relaxed/simple; bh=ZrFYlBxHHWDXDYBXJo3f+4HUSnPm7KvIIOsQaZJ+4Z8=; h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To; b=B7pMlRQK2BB180rkqohyJR0HAPfVv2QWJNB5yqgpDrGtYn2+lM0IHWMHQQ9i0FAxEDUHy4HZkjgDRGiWnEiDNWFpoHtcq4eaRnTEz8gpgdAL56lUxNIUmvQvHB7MuT0i3tngq17hyyZL5xLc7gxuPtsYcZkwP3QZxUi0rjkFL8w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46V70J3m003122; Wed, 31 Jul 2024 09:08:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= message-id:date:mime-version:from:subject:to:cc:content-type :content-transfer-encoding; s=pp1; bh=7SEqPHwxAQGYob6azgca5Gk/i3 f/nhoav90hsr8yQEA=; b=bvOr/BZ+1Af+W7+j+SM4aQ0uwd8ormrjUv15s9eMST KfY43+JqaHdM658E7scVldgA1u4PkPkgx7w+KXHfwr4hiXwrjPiADCKncWGzJ7G+ fhiNBUKZOczDVEPmO0CardhBTdkxlgF3g0h+zS0GngmtprwR+gUDfsaD7pkMTDD4 Ij6v+7pS8ZZErDVYsU7UNQQRQOZEXgfFHplklA+rkSANXaLX5UYBeBIBh164e4+V 9B0zfNi06EW2kHw4QB2f0IactnAGRa9EWX6Q+MTcPzHsc43lsx8K4EPLBrb4SDQX t9NOLyLWpHtw4D255frlYHGDNsCct/eDOAmhCvyybwqA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 40qgfugchr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 09:08:52 +0000 (GMT) Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 46V98qf5007962; Wed, 31 Jul 2024 09:08:52 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 40qgfugchp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 09:08:51 +0000 (GMT) Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 46V85HvB029111; Wed, 31 Jul 2024 09:08:51 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 40nbm0ts3j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 09:08:51 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 46V98lRU53412320 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 31 Jul 2024 09:08:49 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4D9152004D; Wed, 31 Jul 2024 09:08:47 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1940220043; Wed, 31 Jul 2024 09:08:46 +0000 (GMT) Received: from [9.200.158.244] (unknown [9.200.158.244]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 31 Jul 2024 09:08:45 +0000 (GMT) Message-ID: Date: Wed, 31 Jul 2024 17:08:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US From: "Kewen.Lin" Subject: [PATCH] testsuite, rs6000: Fix some run cases with appropriate *_hw To: GCC Patches Cc: Segher Boessenkool , David Edelsohn , Peter Bergner X-TM-AS-GCONF: 00 X-Proofpoint-GUID: RFYF6CBlCzZqq9b0zcdKAevgl2x1U6hm X-Proofpoint-ORIG-GUID: LT10GZz1Zkerm8zX_5AXlzo-BNBetFhG 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-31_06,2024-07-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2407310066 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, 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 Hi, When cleaning up the remaining powerpc_{vsx,altivec}_ok test cases, I found some dg-do run test cases which should check for the appropriate {p8vector,vmx}_hw check instead. This patch is to adjust them accordingly. Bootstrapped and regtested on powerpc64-linux-gnu P8/P9 and powerpc64le-linux-gnu P9 and P10. I'm going to push this next week if no objections. BR, Kewen ---- gcc/testsuite/ChangeLog: * gcc.target/powerpc/swaps-p8-46.c: Check for p8vector_hw rather than powerpc_vsx_ok. * gcc.target/powerpc/ppc64-abi-2.c: Check for vmx_hw rather than powerpc_altivec_ok. * gcc.target/powerpc/pr96139-c.c: Likewise. --- gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/pr96139-c.c | 2 +- gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.43.5 diff --git a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c index b490fc3c2fd..2a5a7602004 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { { powerpc*-*-linux* && lp64 } && powerpc_altivec_ok } } } */ +/* { dg-do run { target { { powerpc*-*-linux* && lp64 } && vmx_hw } } } */ /* { dg-options "-O2 -fprofile -mprofile-kernel -maltivec -mabi=altivec -mno-pcrel" } */ #include #include diff --git a/gcc/testsuite/gcc.target/powerpc/pr96139-c.c b/gcc/testsuite/gcc.target/powerpc/pr96139-c.c index 3ada2603428..b39c559ec0b 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr96139-c.c +++ b/gcc/testsuite/gcc.target/powerpc/pr96139-c.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -Wall -maltivec" } */ -/* { dg-require-effective-target powerpc_altivec_ok } */ +/* { dg-require-effective-target vmx_hw } */ /* * Based on test created by sjmunroe for pr96139 diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c index 3b5154b1231..d0392f25eee 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c @@ -1,5 +1,5 @@ /* { dg-do run { target le } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -mvsx -O2 " } */ typedef __attribute__ ((__aligned__ (8))) unsigned long long __m64;