rs6000/test: Adjust two bfp test cases with has_arch_ppc64 [PR108729]

Message ID d17b718e-24a7-cffb-cbec-e76857db2753@linux.ibm.com
State Accepted
Headers
Series rs6000/test: Adjust two bfp test cases with has_arch_ppc64 [PR108729] |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Kewen.Lin March 1, 2023, 5:54 a.m. UTC
  Hi,

Two test cases scalar-test-data-class-12.c and vec-test-data-class-9.c
fail on Power9 BE testing at -m32, they adopts a built-in function
scalar_insert_exp which requires powerpc64 support.  This patch
is to make them to check has_arch_ppc64 effective target requirement.

Tested on powerpc64-linux-gnu P7/P8/P9 and
powerpc64le-linux-gnu P9/P10.

I'm going to push this soon if no objections.

BR,
Kewen
-----
gcc/testsuite/ChangeLog:

	* gcc.target/powerpc/bfp/scalar-test-data-class-12.c: Adjust with
	has_arch_ppc64 effective target.
	* gcc.target/powerpc/bfp/vec-test-data-class-9.c: Likewise.
---
 gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-12.c | 1 +
 gcc/testsuite/gcc.target/powerpc/bfp/vec-test-data-class-9.c     | 1 +
 2 files changed, 2 insertions(+)

--
2.39.2
  

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-12.c b/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-12.c
index f7f41419810..08f2720e5b4 100644
--- a/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-12.c
+++ b/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-12.c
@@ -1,4 +1,5 @@ 
 /* { dg-do run { target { powerpc*-*-* } } } */
+/* { dg-require-effective-target has_arch_ppc64 } */
 /* { dg-require-effective-target p9vector_hw } */
 /* { dg-options "-mdejagnu-cpu=power9" } */

diff --git a/gcc/testsuite/gcc.target/powerpc/bfp/vec-test-data-class-9.c b/gcc/testsuite/gcc.target/powerpc/bfp/vec-test-data-class-9.c
index aeb64fbf122..c803617b5d3 100644
--- a/gcc/testsuite/gcc.target/powerpc/bfp/vec-test-data-class-9.c
+++ b/gcc/testsuite/gcc.target/powerpc/bfp/vec-test-data-class-9.c
@@ -1,4 +1,5 @@ 
 /* { dg-do run { target { powerpc*-*-* } } } */
+/* { dg-require-effective-target has_arch_ppc64 } */
 /* { dg-require-effective-target p9vector_hw } */
 /* { dg-options "-mdejagnu-cpu=power9" } */