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

login
register
mail settings
Submitter Uros Bizjak
Date Aug. 13, 2010, 10:30 a.m.
Message ID <AANLkTi=0Qya=AmQ8040PAOpdOyaJ1Q-4z4qnJF2gc70-@mail.gmail.com>
Download mbox | patch
Permalink /patch/61678/
State New
Headers show

Comments

Uros Bizjak - Aug. 13, 2010, 10:30 a.m.
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.


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.

Patch

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"