]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000/test: Support vect_long_long effective target
authorKewen Lin <linkw@linux.ibm.com>
Tue, 25 Oct 2022 05:18:45 +0000 (00:18 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Tue, 25 Oct 2022 05:18:45 +0000 (00:18 -0500)
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.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp (check_effective_target_vect_long_long): Add
support for powerpc*-*-*.

gcc/testsuite/lib/target-supports.exp

index 7824a441bca28157caee56b0ebf042222bdb2561..ccbbee847f755d6f30116d5b38e4027a998b48fd 100644 (file)
@@ -7075,7 +7075,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]) }}]
 }