https://gcc.gnu.org/g:118a7241f4fe7132cfd7b028ffd5ad39056ec601

commit r15-3059-g118a7241f4fe7132cfd7b028ffd5ad39056ec601
Author: Kewen Lin <li...@linux.ibm.com>
Date:   Wed Aug 21 00:26:20 2024 -0500

    testsuite, rs6000: Remove all powerpc-*paired* uses
    
    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*.

Diff:
---
 gcc/testsuite/lib/target-supports.exp | 35 ++---------------------------------
 1 file changed, 2 insertions(+), 33 deletions(-)

diff --git a/gcc/testsuite/lib/target-supports.exp 
b/gcc/testsuite/lib/target-supports.exp
index 11ba77ca404d..91995bff65f7 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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

Reply via email to