diff mbox series

testsuite, rs6000: Remove all powerpc-*paired* uses

Message ID ce3fb233-a178-e2ba-3e46-a57d61c2c5f4@linux.ibm.com
State New
Headers show
Series testsuite, rs6000: Remove all powerpc-*paired* uses | expand

Commit Message

Kewen.Lin Aug. 9, 2024, 9:50 a.m. UTC
Hi,

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.

Bootstrapped and regtested on powerpc64-linux-gnu P8/P9 and
powerpc64le-linux-gnu P9 and P10.

I'm going to push this next week if no objections.

BR,
Kewen
-----

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 | 35 ++-------------------------
 1 file changed, 2 insertions(+), 33 deletions(-)

--
2.43.5
diff mbox series

Patch

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 2101e9c9c83..747c5af8d0d 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -2825,30 +2825,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.

@@ -8306,7 +8282,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*-*-*]
@@ -11679,14 +11655,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