This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [vect] Ask for review and approving the patch about vect and loongson


Hello!

> Mingjie Xing  <mingjie.xing@gmail.com>
>
> gcc/ChangeLog
>  * loongson.md: Change define_insn "loongson_pmull<V_suffix>" to "mul<mode>3".
>  * mips.c: Add "#define CODE_FOR_loongson_pmullh CODE_FOR_mulv4hi3".
>
> testsuite/ChangeLog
>  * fast-math-vect-reduc-8.c: Move dg-require-effective-target after dg-do.
>  * vect.exp: Run the vect testsuite when the target is loongson*
>  * target-supports.exp: Check loongson target in vector specific attributes.

Index: testsuite/gcc.dg/vect/vect.exp
===================================================================
--- testsuite/gcc.dg/vect/vect.exp	(revision 163219)
+++ testsuite/gcc.dg/vect/vect.exp	(working copy)
@@ -74,9 +74,12 @@ if  [istarget "powerpc-*paired*"]  {
 	set dg-do-what-default compile
     }
 } elseif { [istarget "mips*-*-*"]
-	   && [check_effective_target_mpaired_single]
-	   && [check_effective_target_nomips16] } {
-    lappend DEFAULT_VECTCFLAGS "-mpaired-single"
+           && ([check_effective_target_mpaired_single]
+               || [check_effective_target_mips_loongson])
+           && [check_effective_target_nomips16] } {
+    if { [check_effective_target_mpaired_single] } {
+      lappend DEFAULT_VECTCFLAGS "-mpaired-single"
+    }
     set dg-do-what-default run
 } elseif [istarget "sparc*-*-*"] {
     lappend DEFAULT_VECTCFLAGS "-mcpu=ultrasparc" "-mvis"

There are various copies of vect.exp scattered in the testsuite:

$ find . -name vect.exp
./gcc.dg/vect/vect.exp
./gfortran.dg/vect/vect.exp
./g++.dg/vect/vect.exp

You will need to change them all. Bonus points if you merge all these
files into globally accessible support library.

Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]