Hi,

Currently effective target vect_long_long doesn't have
power specific check, I think it's an oversight.  This
is to add the support which checks for has_arch_pwr8,
since we set rs6000_vector_unit[V2DImode] as:

  (TARGET_P8_VECTOR) ? VECTOR_P8_VECTOR : VECTOR_NONE;

it means its full support starts from ISA 2.07.
Although ISA 2.06 has some instructions like lxvd2x
and stxvd2x etc., it's used for testing, checking for
ISA 2.07 is more sensitive.

Tested well on powerpc64-linux-gnu P7 and P8, as well
as powerpc64le-linux-gnu P9 and P10.

As testing results show, it adds some testing coverage.

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

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

        * lib/target-supports.exp (check_effective_target_vect_long_long): Add
        support for powerpc*-*-*.
---
 gcc/testsuite/lib/target-supports.exp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/lib/target-supports.exp 
b/gcc/testsuite/lib/target-supports.exp
index fdd88e6a516..5eb7743b53a 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -7059,7 +7059,10 @@ proc check_effective_target_vect_long_long { } {
             || ([istarget mips*-*-*]
                 && [et-is-effective-target mips_msa])
             || ([istarget s390*-*-*]
-                && [check_effective_target_s390_vx]) }}]
+                && [check_effective_target_s390_vx])
+            || ([istarget powerpc*-*-*]
+                && ![istarget powerpc-*-linux*paired*]
+                && [check_effective_target_has_arch_pwr8]) }}]
 }

Reply via email to