]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, rs6000: Remove all powerpc-*paired* uses
authorKewen Lin <linkw@linux.ibm.com>
Wed, 21 Aug 2024 05:26:20 +0000 (00:26 -0500)
committerKewen Lin <linkw@gcc.gnu.org>
Wed, 21 Aug 2024 05:26:20 +0000 (00:26 -0500)
Similar to r15-710-g458b23bc8b3e2b which removed all uses of
powerpc-*-linux*paired*, this patch is to remove the remaining
powerpc-*paired* uses which I missed to catch with "*linux*"
in search keyword.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp (check_vect_support_and_set_flags): Remove
the if arm checking powerpc-*paired*.
(check_750cl_hw_available): Remove.
(check_effective_target_vect_unpack): Remove the check on
powerpc-*paired*.

gcc/testsuite/lib/target-supports.exp

index 11ba77ca404dc86e5bc5533ff2e7214cc494c3ef..91995bff65f73c8ae8b985bff1f2bf7635a4f501 100644 (file)
@@ -2848,30 +2848,6 @@ proc check_ppc_cpu_supports_hw_available { } {
     }]
 }
 
-# Return 1 if the target supports executing 750CL paired-single instructions, 0
-# otherwise.  Cache the result.
-
-proc check_750cl_hw_available { } {
-    return [check_cached_effective_target 750cl_hw_available {
-       # If this is not the right target then we can skip the test.
-       if { ![istarget powerpc-*paired*] } {
-           expr 0
-       } else {
-           check_runtime_nocache 750cl_hw_available {
-                int main()
-                {
-                #ifdef __MACH__
-                  asm volatile ("ps_mul v0,v0,v0");
-                #else
-                  asm volatile ("ps_mul 0,0,0");
-                #endif
-                  return 0;
-                }
-           } "-mpaired"
-       }
-    }]
-}
-
 # Return 1 if the target supports executing power8 vector instructions, 0
 # otherwise.  Cache the result.
 
@@ -8329,7 +8305,7 @@ proc check_effective_target_vect_pack_trunc { } {
 
 proc check_effective_target_vect_unpack { } {
     return [check_cached_effective_target_indexed vect_unpack {
-      expr { ([istarget powerpc*-*-*] && ![istarget powerpc-*paired*])
+      expr { [istarget powerpc*-*-*]
             || [istarget i?86-*-*] || [istarget x86_64-*-*]
             || [istarget ia64-*-*]
             || [istarget aarch64*-*-*]
@@ -11702,14 +11678,7 @@ proc check_vect_support_and_set_flags { } {
     global dg-do-what-default
     global EFFECTIVE_TARGETS
 
-    if  [istarget powerpc-*paired*]  {
-       lappend DEFAULT_VECTCFLAGS "-mpaired"
-       if [check_750cl_hw_available] {
-           set dg-do-what-default run
-       } else {
-           set dg-do-what-default compile
-       }
-    } elseif [istarget powerpc*-*-*] {
+    if [istarget powerpc*-*-*] {
        # Skip targets not supporting -maltivec.
        if ![is-effective-target powerpc_altivec_ok] {
            return 0