From patchwork Wed Jul 31 09:08:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 1966969 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=s9Tf3Peq; 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 4WYmWn2TBbz1ybV for ; Wed, 31 Jul 2024 19:09:57 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7D698385C6CE for ; Wed, 31 Jul 2024 09:09:55 +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 4A1AF385C6C6 for ; Wed, 31 Jul 2024 09:08:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4A1AF385C6C6 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 4A1AF385C6C6 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=1722416905; cv=none; b=UUWx0IjVlvsJOntavB+gZN2Vu2Wy58sMxBMMcdP6aBSjQWFZMg5DpTiFczN7l1w5/dUgkebW43a7qmjxPEGf3aszBZjQWRzQDgixfQHiYPhVA4wKXeI1muVqI1WsAJac2hQbhz3/MDH19AAiuT5PDdKp5G/NBMbGf7y+X43fGxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722416905; c=relaxed/simple; bh=g+wnnjZ+38TB95q4Q5yqpU4A/433Q95COvzeGrIUZ8s=; h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To; b=YA9p91j2LZe9d4AMiIFohb9avWKHT1tWLqHBoiJHdU7JE6m6PNOO/m9zRBN6dC58dTrZbAaKY1G/SyMZgWULPZmRuKriMjOGmttw8i2YtJnPtSyIkvIm7w5bOrQzsLOh4+v78qY1W7AlAqjCjJADEa5dZHy+TgqPROnjZUpvInE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46V8FO9l005856; Wed, 31 Jul 2024 09:08:22 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=TuldiHAPbl0f8B9tsp6Hku//fO rIjm2husO5yuqk4iI=; b=s9Tf3PeqAW19Ni7ZjZfXE9Wx2nqJyBZkaFUeBeoyLQ csFkC0xfJ7l895zq89gJ19oSgviJI9bsh664a8hQ2j+fFRUj2BM6Jr/n7k5RMAvm uf8mNbJCaglsRTDv3TIQVL3ed7UQrIOJu92OaBNSftAQbz50qrRix1Bmve9qbHfZ us3uLVAY4qqDzHZFcNJWjykNHnwLsrwfuT7I4iVjHRJkacqTQHtNkUZrrWoRwjzz HtpGG2xEVfu/AWtBEwl9rxOiDgNWs6SrYHLjyBT3kA7ETLaV0Qbv1S69SMnzp5Lo uppDcFCG6oQEbZxQn9WdPXlBfvlikaguSPp2KRVY20NQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 40qhkf851s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 09:08:22 +0000 (GMT) Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 46V98LFK005475; Wed, 31 Jul 2024 09:08:21 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 40qhkf851q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 09:08:21 +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 46V8VKna029094; Wed, 31 Jul 2024 09:08:20 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 40nbm0ts2c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 09:08:20 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 46V98GKF50069860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 31 Jul 2024 09:08:18 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 429AB2004D; Wed, 31 Jul 2024 09:08:16 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BA6FA2004B; Wed, 31 Jul 2024 09:08:14 +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:14 +0000 (GMT) Message-ID: <0f1fed32-54c9-e5cd-6404-33d6056b25c7@linux.ibm.com> Date: Wed, 31 Jul 2024 17:08:13 +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: Replace powerpc_vsx_ok with powerpc_altivec etc. To: GCC Patches Cc: Segher Boessenkool , David Edelsohn , Peter Bergner X-TM-AS-GCONF: 00 X-Proofpoint-GUID: hpycJOj0q5r3t6V4dTBLl4DO4LFVKZ0H X-Proofpoint-ORIG-GUID: 6HOroFdQSbMHuvMj8qEJOknteKz0qZ42 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 mlxlogscore=884 impostorscore=0 mlxscore=0 bulkscore=0 spamscore=0 suspectscore=0 adultscore=0 malwarescore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 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, This is a follow up patch for the previous patch adjusting powerpc_vsx_ok with powerpc_vsx, focusing on those test cases which don't really require VSX feature but used powerpc_vsx_ok before, they actually require some other effective target check, like some of them just require ALTIVEC feature, some of them just require hard float support, and some of them just require ISA 2.06 etc.. By the way, ppc-fpconv-4.c is the only one missing powerpc_fprs among ppc-fpconv-*.c after this replacement, so I also fix it here. 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 ---- PR testsuite/114842 gcc/testsuite/ChangeLog: * gcc.target/powerpc/bswap64-2.c: Replace powerpc_vsx_ok check with has_arch_pwr7. * gcc.target/powerpc/ppc-fpconv-2.c: Replace powerpc_vsx_ok check with powerpc_fprs. * gcc.target/powerpc/ppc-fpconv-6.c: Likewise. * gcc.target/powerpc/ppc-pow.c: Likewise. * gcc.target/powerpc/ppc-target-1.c: Likewise. * gcc.target/powerpc/ppc-target-2.c: Likewise. * gcc.target/powerpc/ppc-target-3.c: Likewise. * gcc.target/powerpc/ppc-target-4.c: Likewise. * gcc.target/powerpc/ppc-fpconv-4.c: Check for powerpc_fprs. * gcc.target/powerpc/fold-vec-select-char.c: Replace powerpc_vsx_ok with powerpc_altivec check and move it after dg-options line. * gcc.target/powerpc/fold-vec-select-float.c: Likewise. * gcc.target/powerpc/fold-vec-select-int.c: Likewise. * gcc.target/powerpc/fold-vec-select-short.c: Likewise. * gcc.target/powerpc/p9-novsx.c: Likewise. * gcc.target/powerpc/p9-options-1.c: Likewise. --- gcc/testsuite/gcc.target/powerpc/bswap64-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-select-char.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c | 6 +++--- gcc/testsuite/gcc.target/powerpc/fold-vec-select-int.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-select-short.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-novsx.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-options-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/ppc-fpconv-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/ppc-fpconv-4.c | 1 + gcc/testsuite/gcc.target/powerpc/ppc-fpconv-6.c | 2 +- gcc/testsuite/gcc.target/powerpc/ppc-pow.c | 2 +- gcc/testsuite/gcc.target/powerpc/ppc-target-1.c | 3 ++- gcc/testsuite/gcc.target/powerpc/ppc-target-2.c | 3 ++- gcc/testsuite/gcc.target/powerpc/ppc-target-3.c | 2 +- gcc/testsuite/gcc.target/powerpc/ppc-target-4.c | 2 +- 15 files changed, 19 insertions(+), 16 deletions(-) -- 2.43.5 diff --git a/gcc/testsuite/gcc.target/powerpc/bswap64-2.c b/gcc/testsuite/gcc.target/powerpc/bswap64-2.c index 6c3d8ca0528..70d872b5e30 100644 --- a/gcc/testsuite/gcc.target/powerpc/bswap64-2.c +++ b/gcc/testsuite/gcc.target/powerpc/bswap64-2.c @@ -1,7 +1,7 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ /* { dg-options "-O2 -mpopcntd" } */ /* { dg-require-effective-target lp64 } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target has_arch_pwr7 } */ /* { dg-final { scan-assembler "ldbrx" } } */ /* { dg-final { scan-assembler "stdbrx" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-char.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-char.c index e055c017536..17e28914aae 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-char.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-char.c @@ -2,8 +2,8 @@ inputs produce the right code. */ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-maltivec -O2" } */ +/* { dg-require-effective-target powerpc_altivec } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c index 1656fbff2ca..848bd750ff8 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c @@ -1,9 +1,9 @@ -/* Verify that overloaded built-ins for vec_sel with float - inputs for VSX produce the right code. */ +/* Verify that overloaded built-ins for vec_sel with float + inputs produce the right code. */ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-maltivec -O2" } */ +/* { dg-require-effective-target powerpc_altivec } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-int.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-int.c index 510fc564370..f51d741d401 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-int.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-int.c @@ -2,8 +2,8 @@ inputs produce the right code. */ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-maltivec -O2" } */ +/* { dg-require-effective-target powerpc_altivec } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-short.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-short.c index 0d11fce81b2..666e07abf02 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-short.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-short.c @@ -2,8 +2,8 @@ inputs produce the right code. */ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-maltivec -O2" } */ +/* { dg-require-effective-target powerpc_altivec } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/p9-novsx.c b/gcc/testsuite/gcc.target/powerpc/p9-novsx.c index 719267665d2..15807f9da68 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-novsx.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-novsx.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -mvsx -mno-vsx -O1" } */ +/* { dg-require-effective-target powerpc_altivec } */ /* { dg-final { scan-assembler-times "lvx %?v?2,%?r?3" 1 } } */ /* { dg-final { scan-assembler-times "stvx %?v?2,%?r?3" 1 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-options-1.c b/gcc/testsuite/gcc.target/powerpc/p9-options-1.c index 9da4d3630c0..034a7f8012a 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-options-1.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-options-1.c @@ -1,6 +1,6 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -mno-vsx" } */ +/* { dg-require-effective-target powerpc_altivec } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-2.c b/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-2.c index df5c5dfeece..6f8e3c85c6a 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-2.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-2.c @@ -1,6 +1,6 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target powerpc_fprs } */ /* { dg-options "-O2 -mdejagnu-cpu=power6 -ffast-math" } */ /* { dg-final { scan-assembler-times "lfiwax" 2 } } */ /* { dg-final { scan-assembler-not "lfiwzx" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-4.c b/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-4.c index b9db8769a0c..9db22cb7019 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-4.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-4.c @@ -1,6 +1,7 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target ilp32 } */ +/* { dg-require-effective-target powerpc_fprs } */ /* { dg-skip-if "" { powerpc*-*-* } { "-mpowerpc64" } } */ /* { dg-options "-O2 -mdejagnu-cpu=750 -ffast-math" } */ /* { dg-final { scan-assembler-not "lfiwax" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-6.c b/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-6.c index 794a6f9c6bf..24a6dd99e71 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-6.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-6.c @@ -1,6 +1,6 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target powerpc_fprs } */ /* { dg-options "-O3 -mdejagnu-cpu=power6 -ffast-math" } */ /* { dg-final { scan-assembler-times "fctiwz " 2 } } */ /* { dg-final { scan-assembler-not "fctiwuz " } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-pow.c b/gcc/testsuite/gcc.target/powerpc/ppc-pow.c index 66358299dc1..dfcd57ac024 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-pow.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-pow.c @@ -3,7 +3,7 @@ /* Check for VSX here, even though we don't use VSX to eliminate SPE, PAIRED and other ppc floating point varients. However, we need to also eliminate Darwin, since it doesn't like -mcpu=power6. */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target powerpc_fprs } */ /* { dg-options "-O2 -ffast-math -mdejagnu-cpu=power6 -mno-vsx -mno-altivec" } */ /* { dg-final { scan-assembler-times "fsqrt" 3 } } */ /* { dg-final { scan-assembler-times "fmul" 1 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-target-1.c b/gcc/testsuite/gcc.target/powerpc/ppc-target-1.c index 6f06e920d2a..a9eb95ab441 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-target-1.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-target-1.c @@ -1,6 +1,7 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target powerpc_altivec } */ +/* { dg-require-effective-target powerpc_fprs } */ /* { dg-options "-O2 -ffast-math -mdejagnu-cpu=power5 -mabi=altivec" } */ /* { dg-final { scan-assembler-times "fabs" 3 } } */ /* { dg-final { scan-assembler-times "fnabs" 3 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-target-2.c b/gcc/testsuite/gcc.target/powerpc/ppc-target-2.c index 034aaad7fc9..a13308f4e22 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-target-2.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-target-2.c @@ -1,6 +1,7 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target powerpc_altivec } */ +/* { dg-require-effective-target powerpc_fprs } */ /* { dg-options "-O2 -ffast-math -mdejagnu-cpu=power5 -mabi=altivec" } */ /* { dg-final { scan-assembler-times "fabs" 3 } } */ /* { dg-final { scan-assembler-times "fnabs" 3 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-target-3.c b/gcc/testsuite/gcc.target/powerpc/ppc-target-3.c index 4f579df8a39..2a297fd4775 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-target-3.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-target-3.c @@ -1,6 +1,6 @@ /* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target powerpc_fprs } */ /* { dg-options "-O2 -ffast-math -mdejagnu-cpu=power5 -mabi=no-altivec" } */ /* { dg-final { scan-assembler-times "fabs" 3 } } */ /* { dg-final { scan-assembler-times "fnabs" 3 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-target-4.c b/gcc/testsuite/gcc.target/powerpc/ppc-target-4.c index db9ba500e0e..feef76db461 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-target-4.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-target-4.c @@ -1,6 +1,6 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target powerpc_fprs } */ /* { dg-options "-O2 -ffast-math -mdejagnu-cpu=power5 -mno-altivec -mabi=altivec -fno-unroll-loops" } */ /* { dg-final { scan-assembler-times "vaddfp" 1 } } */ /* { dg-final { scan-assembler-times "xvaddsp" 1 } } */