From patchwork Wed May 8 06:33:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 1932822 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=E2tfCr1z; 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 4VZ54v501dz214K for ; Wed, 8 May 2024 16:35:59 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E0CF43886C4D for ; Wed, 8 May 2024 06:35:57 +0000 (GMT) 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 42CB7388700A for ; Wed, 8 May 2024 06:33:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42CB7388700A 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 42CB7388700A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715150038; cv=none; b=QQwb3sQWjv562S3JNxD0RYsp05f/O0hrYqd7bvimWyo4RO5Xxs8jbFkso3veWPgE1W5A2/HERL93J0UawtQrgdO0LZGJqBJ1xCF6M3SSJVbu47I5UL8BhPd0rjNmOOQJ2n5GjKeoOBMSBXTjIku5lHG0UzpX8s3RyQqCv905vcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715150038; c=relaxed/simple; bh=cATsSnlyIzFbWelzYwH2e3mPRFWmWiJwksb36UKyG5s=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=ghldN+y2HPizZapTK+Xt8nwHjTpxKrMeoO+KteK8SRpKbHFCmqXqj/EKvptlw0RCugoc4abSkG+XVi+3AiL6m4H7UmpHzmr8kkwLYvpj3aJH2364pfdekDa6+AdzoYkBJUX0pdVO0PwjifTgNICl2zbJALHJ/0iSpbCeKZvixgA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 4486QkFf005836; Wed, 8 May 2024 06:33:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : to : cc : from : subject : content-type : content-transfer-encoding; s=pp1; bh=pEdiYvmEQeCKV4lUZv/R1qQ7+r2INgBYacmAOVcMrGg=; b=E2tfCr1zLPbm+wEAN57CjPOrIWe7Xo6rMOyKmFWWjAHaV6HDHSeVFbS3jju+qqmy3c/i Pt3aGrGo7BNFPZU6YKH7kOM602O9gnQ7NrTcN+SQ1b8mGNPg+0Pcih9YovtotJVk7E8K O/4avm956p8O0avBzlOIvTyLOmHoMUknLL6aKyxpUzV2MNTHM4twS9lNGlqB148hBhuI y1cJ89bNHNml7qYgy4nXQ8OfokPDUlBN49VmBc2gzi3VfqjFH0D1xLWCfX9fnIWx+cVl OC2jvX0X+4RYdTTrAQ6ZUxOpbefJGfadIrh0Py31heR7xQjc6Vcts5dCRgKpJZeN+R+Y Zg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y044qr0c8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 06:33:55 +0000 Received: from m0353729.ppops.net (m0353729.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 4486Xtl8018072; Wed, 8 May 2024 06:33:55 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 3y044qr0c6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 06:33:55 +0000 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 4484VssT009280; Wed, 8 May 2024 06:33:54 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3xysht34gc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 06:33:54 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4486XmVR47382936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 May 2024 06:33:50 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 932CF2004B; Wed, 8 May 2024 06:33:48 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9D8BA20040; Wed, 8 May 2024 06:33:46 +0000 (GMT) Received: from [9.200.57.36] (unknown [9.200.57.36]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 8 May 2024 06:33:46 +0000 (GMT) Message-ID: <957999f8-9fb4-3f24-4446-74b29f950d46@linux.ibm.com> Date: Wed, 8 May 2024 14:33:45 +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 To: GCC Patches Cc: Segher Boessenkool , David Edelsohn , Peter Bergner , Michael Meissner From: "Kewen.Lin" Subject: [PATCH] testsuite: Fix typo in torture/vector-{1,2}.c X-TM-AS-GCONF: 00 X-Proofpoint-GUID: RJ8MNZLKhh2I1dR9tb1SN3V_GL6zofae X-Proofpoint-ORIG-GUID: HcR0yiNZcskIbe-dRItrGYkLt65PMiGd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-08_02,2024-05-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 mlxscore=0 suspectscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 phishscore=0 impostorscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405080047 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H4, 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 making some clean up patches, I happened to find test cases vector-{1,2}.c are having typo "powerpc64--*-*" in target selector, which should be powerpc64-*-*. The reason why we didn't catch before is that all our testing machines support VMX insns, so it passes always. But it would break if a test machine doesn't support that, so this patch is to fix it to ensure robustness. Regtested on powerpc64-linux-gnu P8/P9 and powerpc64le-linux-gnu P9 and P10. I'm going to push this soon if no objections. BR, Kewen ----- gcc/testsuite/ChangeLog: * gcc.dg/torture/vector-1.c: Fix typo. * gcc.dg/torture/vector-2.c: Likewise. --- gcc/testsuite/gcc.dg/torture/vector-1.c | 2 +- gcc/testsuite/gcc.dg/torture/vector-2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.39.1 diff --git a/gcc/testsuite/gcc.dg/torture/vector-1.c b/gcc/testsuite/gcc.dg/torture/vector-1.c index 205fee6d6de..1b98ee26ff3 100644 --- a/gcc/testsuite/gcc.dg/torture/vector-1.c +++ b/gcc/testsuite/gcc.dg/torture/vector-1.c @@ -4,7 +4,7 @@ /* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */ /* { dg-options "-mabi=altivec" { target { powerpc-*-* powerpc64-*-* } } } */ -/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64--*-* } } } */ +/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64-*-* } } } */ #define vector __attribute__((vector_size(16) )) diff --git a/gcc/testsuite/gcc.dg/torture/vector-2.c b/gcc/testsuite/gcc.dg/torture/vector-2.c index b004d005775..c9a3a44d4df 100644 --- a/gcc/testsuite/gcc.dg/torture/vector-2.c +++ b/gcc/testsuite/gcc.dg/torture/vector-2.c @@ -4,7 +4,7 @@ /* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */ /* { dg-options "-mabi=altivec" { target { powerpc-*-* powerpc64-*-* } } } */ -/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64--*-* } } } */ +/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64-*-* } } } */ #define vector __attribute__((vector_size(16) ))