testsuite: Adjust two bfp test cases with has_arch_ppc64 [PR108729]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 8 Mar 2023 06:56:32 +0000 (00:56 -0600)
committerKewen Lin <linkw@linux.ibm.com>
Wed, 8 Mar 2023 06:56:32 +0000 (00:56 -0600)
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.

PR testsuite/108729

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
gcc/testsuite/gcc.target/powerpc/bfp/vec-test-data-class-9.c

index f7f4141..08f2720 100644 (file)
@@ -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" } */
 
index aeb64fb..c803617 100644 (file)
@@ -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" } */