GCC maintainers:

The gcc test suite compiles and attempts to run the check-builtin-
vec_rlnm-runnable.c test on Power 8 platforms.  The test should only be
run on Power 9 and newer platforms.  The attached patch fixes the
target for the executable test so it only runs on Power 9 and newer
platforms.

The patch was tested on powerpc64-linux instead (Power 8 BE).  The test
harness reports 1 unsupported test.

The patch was also tested on:

    powerpc64le-linux instead (Power 9 LE)
    powerpc64le-linux instead (Power 10 LE)

The test harness reports 3 expected passes and no failures.

Please let me know if the patch looks OK for mainline.  Thanks.

                Carl 

-----------------------------------------


The effective target for a Power 9 runnable test should be
p9vector_hw.

2021-06-11  Carl Love  <c...@us.ibm.com>

gcc/testsuite/ChangeLog

        * gcc.target/powerpc/check-builtin-vec_rlnm-runnable.c 
(dg-require-effective-target):
        Change target to p9vector_hw.
---
 .../gcc.target/powerpc/check-builtin-vec_rlnm-runnable.c        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/check-builtin-vec_rlnm-runnable.c 
b/gcc/testsuite/gcc.target/powerpc/check-builtin-vec_rlnm-runnable.c
index cd67b06afbe..55935eaafd2 100644
--- a/gcc/testsuite/gcc.target/powerpc/check-builtin-vec_rlnm-runnable.c
+++ b/gcc/testsuite/gcc.target/powerpc/check-builtin-vec_rlnm-runnable.c
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-require-effective-target p9vector_hw } */
 /* { dg-options "-O2 -mdejagnu-cpu=power9 -save-temps" } */
 
 /* Verify the vec_rlm and vec_rlmi builtins works correctly.  */
-- 
2.17.1


Reply via email to