public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3475] rs6000/test: Support vect_long_long effective target
@ 2022-10-25  5:20 Kewen Lin
  0 siblings, 0 replies; only message in thread
From: Kewen Lin @ 2022-10-25  5:20 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:321f89e58510dd5df1b3dbe323344b987a7b11c6

commit r13-3475-g321f89e58510dd5df1b3dbe323344b987a7b11c6
Author: Kewen Lin <linkw@linux.ibm.com>
Date:   Tue Oct 25 00:18:45 2022 -0500

    rs6000/test: Support vect_long_long effective target
    
    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*-*-*.

Diff:
---
 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 7824a441bca..ccbbee847f7 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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]) }}]
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-25  5:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25  5:20 [gcc r13-3475] rs6000/test: Support vect_long_long effective target Kewen Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).